How to Generate token using HTTP request

Hi team,
I have a process that is going to interact with API - that needs to generate token before updating data in the API Endpoint. I have used the credentials to access token using postman and able to do that. As you can see in the screen below.

However, I used Parameters to configure the body.

Unfortunately, I have not been able to generate token and pass on to the next workflow.
Can anyone advice what was missing from my steps?

Thanks a lot,
Sisay

Hi @Sisay_Dinku,

Please try to follow below steps:

Regards
Sonali

@sonaliaggarwal47 - sorry for the confussion -
the API is not from UiPath.
It’s another site - which uses SSO via MS - as you can see in the endpoint in the above screenshot!
Thanks!

In the HTTP Request β†’ Properties

Change these:

AcceptFormat from JSON to ANY
BodyFormat from application/json to application/x-www-form-urlencoded

Reference https://uipath-survey.secure.force.com/CaseView/articles/Knowledge/How-To-Make-Orchestrator-API-Requests-Using-HTTP-Request-Activities-or-Orchestrator-HTTP-Request?lang=en_US

@marian.platonov Thank you a lot. This works!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.