How to connect ServiceNow to the Orchestrator API with an external app?
- First create the external app in Automation Cloud
Follow along with OAuth 2.0 Tutorial - Create An OAuth Provider and Profile ut make a few changes.
Use the following fields in the ServiceNow setup:
- Authorization URL: https://cloud.uipath.com/identity_/connect/authorize
- Token URL: https://cloud.uipath.com/identity_/connect/token
- OAuth scope: Start with OR.Default but add other scopes later
- Redirect URL: use the redirect to the ServiceNow instance
- Add an Oauth entity profile with Authorization code type
- Add the entity scope
- Test with a Rest message by Create a REST Message
- Use /odata/assets to test
- Add the X-UIPATH-OrganizationUnitId as a header