I’m currently working on a use case where my workflow is supposed to be exposed and triggered as a web service. I noticed that you could invoke web services inside UiPath, but is it possible to have my workflow triggered by a different web service or third party program?
If you are asking on how to trigger your process from a different software using API then the answer is yes.
This is the link for all OData and references,
https://orchestrator.uipath.com/v2018.4/reference
Swagger URL:
https://platform.uipath.com/swagger/ui/index#/
Basic steps would involve,
- Authenticating with orchestrator
- Getting the release key
- Starting the job
Thank you for this @rachrahul2, I’ll try this.
Hey Rahul, is there like a more detailed step by step process on how to trigger the deployed process in orchestrator? Sorry, I’m quite new in UiPath. Let’s say using Postman?
Postman will let you test/simulate your API(s) and it is very similar to what I mentioned - Swagger UiPath (web based)
Some detailed steps for triggering a process would involve…
- Authenticating your orchestrator (POST method)
Body includes
“{”+“”“tenancyName”“”+“:”+ “”“yourTenant”“”+“,”+“”“usernameOrEmailAddress”“”+“:”+ “”“userID”“”+“,”+“”“password”“”+“:”+ “”“PW”“”+“}”
You get Result and Connection Status
List of connection status codes - List of HTTP status codes - Wikipedia
Result is string
- You need to use deserialize json activity to de-serialize the string
- You need to get release key (Similar to step 1 with GET method)
The output will be a string. - Using the release you need to do another HTTP POST
The body will be something similar to this
“{”+
“”“startInfo”“”+“:”+" “+”{“+
“”“ReleaseKey””“+”:“+” “+”“”“+Release_Key+”“”“+”,“+
“”“RobotIds””“+”:“+” “+”[“+
Bot_ID+
" ]”+“,”+
“}”+
“}”
Finally these are some reference posts:
Hope this helps. Good luck
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.