Finally, I was able to get authentication from Orchestrator API call. The problem is that I had to use external REST API client, I would like to achieve the same with UiPath but I’m facing a few problems.
So my goal is to build dynamic API call based on user input but I don’t get the structure of call in HTTP Request activity.
My code returns following body structure:
The difference between them is a number of quotes marks on each line when I’m doing +chr(34) then I’m getting “” instead of " how to fix it? also “”" will post somehow “” …
2nd question is about the header section:
How it should look like:
Here is a workflow for building Json String based on dictionaries.
I use it to build a body for Jira API.
As Maciej mention check out his guide on how to start creating APIs for Orchestrator based on the Swagger documentation.
I started my adventure with API at the beginning of this year from the same topic.
POST https://[Orchestrator_URL]/api/account/authenticate
This call is for the on-premises Orchestrator API. Basic authentication for API is not supported for Automation Cloud Orchestrator tenants .