To successfully establish a connection and send requests to the ServiceNow API, the ServiceNow Scope activity needs to retrieve an OAuth access token. To retrieve the OAuth access token it needs your ServiceNow instance Client ID, Client Secret, and endpoint URL.
To give the ServiceNow Scope activity the ability to retrieve the OAuth access token and enable the other activities to successfully send requests to the ServiceNow API, you must complete the following steps:
Complete the Setup OAuth steps in the ServiceNow documentation. While the documented steps are likely the same across all ServiceNow platform regions, it's recommended that you follow the steps for your specific region in case there are differences (e.g., Madrid, New York, etc.)
For reference, below is how we setup OAuth for our examples.
If you already setup OAuth for your ServiceNow instance, take note of the Client Id and Client Secret assigned to your application registry and proceed to the 2.Create Credential Assets step.
- Sign in to your ServiceNow instance (e.g., https://dev74293.service-now.com/login)
- Go to System Definitions > Plugins and verify the OAuth plugin Status is set to Active.
- Go to System OAuth > Application Registry and click New.
- When asked What kind of OAuth application?, click Create an OAuth API endpoint for external clients.
- Enter a Name for your application (e.g. UiPathQuickstart) and click Submit (if successful, you are redirected back to your Application Registries list).
- In the Application Registries list, find your new application and click on its Name to open the details page.
- Click on the lock icon next to Client Secret to show the value.
- Take note of the Client Id and Client Secret values (you'll enter these in the ServiceNow Scope activity).
The ServiceNow Scope activity requires
SecureString inputs for your ServiceNow credentials (Password and ClientSecret). To generate the
SecureString variables, it's recommended that you create two Credential Assets in your Orchestrator Tenant.
- Sign in to the Orchestrator Tenant that you want to use for your project.
- In the left-hand navigation, click Assets (this opens the Assets page).
- Click the + icon to create a new Asset (this opens the Create Asset window).
- Enter a Name and select Credential under Type.
- In the Username field, enter the ClientId of your ServiceNow application registry.
- In the Password field, enter the ClientSecret of your ServiceNow application registry.
- Click Create.
- Repeat steps 3-7 to create another Asset for your ServiceNow Username and Password.
- Create a new automation project.
- Open UiPath Studio.
- Under New Project, click Process (this opens a New Blank Process window).
- Enter a project Name, Location, and Description.
- Click Create.
- Install the UiPath.ServiceNowActivities package.
- In the Design ribbon, click Manage Packages (this opens the Manage Packages window).
- Under All Packages, click Beta
- In the Search bar, enter ServiceNow.
- Click, install and accept the license for the UiPath.ServiceNow.Activities.
- For more information about Uipath Studio packages, see Managing Packages in the Studio Guide.
Now that you have completed the setup, you can start adding the ServiceNow activities to your project.
For a hands-on learning experience and to quickly start using the activities, see the Quickstart guide. This guide provides step-by-step instructions to help you create a working sample of the different activities so that you can verify the connection to your ServiceNow instance and get familiar with the input/output properties.
To learn more about the ServiceNow activities (including example property inputs/outputs), see the Activities page for a complete activity list and links to the activity detail pages.
Updated 5 months ago