Create Bearer token and use for user creation for Rest Integration

SHARAD KUMAR ME
Tera Contributor

Hi Team, 

I am doing a REST Integration using flow designer/workflow. For Authentication, I am using bearer token, which needs to be send in Authorization header.I cant use Oauth type credential as I don't have client Id and Client Secret. I have direct generated token. 

Requirement to create ServiceNow forms use designer/workflow to trigger REST API call to create token and use the same for user creation/Updation at Saviynt end.

Any inputs will be appreciated.

Thanks

1 ACCEPTED SOLUTION

Hi @SHARAD KUMAR ME ,

 Yes, this setup can be achieved with workflow/flow designer. For flow designer though, you would need to ensure that the REST Action Step is installed. If you're practicing with a PDI you would need to go to the SN Developer site and use the configurations in the header to install it.

click_activate_plugin.pngintegrationhub_plugins.png

 

After those are installed then you should be able to choose the REST Step in a Flow Action

rest_step.png

 

If you can't get the REST step at the moment it still can be done in a Flow. You would just have to setup the platform REST Message and then use a Script Action in the Flow.

 

Basically the setup would be one call to retrieve the token.

One call for refresh token.

Once call for using the token (actual call to retrieve data)

And of course you would be using the response from either of the token retrievals and using the response in the call for data retrieval using the pills of the Flow.

View solution in original post

6 REPLIES 6

Hi @ChrisBurksChrisBurks,

 

Thanks for the links and details, made my life easy.

Do you also have that we can use in workflow/flow designer to use REST Methods to get bearer token and parse it. Again send to create a new user or update user.

Able to do it manually ,need to use it in flow so that can be done automatically once request for new user creation submitted.

 

Thanks in advance. 

Thanks

Hi @SHARAD KUMAR ME ,

 Yes, this setup can be achieved with workflow/flow designer. For flow designer though, you would need to ensure that the REST Action Step is installed. If you're practicing with a PDI you would need to go to the SN Developer site and use the configurations in the header to install it.

click_activate_plugin.pngintegrationhub_plugins.png

 

After those are installed then you should be able to choose the REST Step in a Flow Action

rest_step.png

 

If you can't get the REST step at the moment it still can be done in a Flow. You would just have to setup the platform REST Message and then use a Script Action in the Flow.

 

Basically the setup would be one call to retrieve the token.

One call for refresh token.

Once call for using the token (actual call to retrieve data)

And of course you would be using the response from either of the token retrievals and using the response in the call for data retrieval using the pills of the Flow.