- Overview
- Adobe Sign
- Alteryx
- Amazon Comprehend
- Amazon Connect
- Amazon Rekognition
- Amazon Textract
- Box
- Release notes
- About the Box activity package
- Fix XAML After Package Update
- Project compatibility
- Setup
- Technical references
- Box Scope
- Commit Session
- Create File Version Session
- Create Upload Session
- Upload Part
- Delete Old Version
- Get Versions
- Promote Version
- Upload File Version
- Copy File
- Delete File
- Download File
- Get File Comments
- Get File Info
- Get File Info Details
- Get File Lock Info
- Lock File
- Move File
- Unlock File
- Upload File
- Copy Folder
- Create Folder
- Delete Folder
- Get Folder Info
- Get Folder Items
- Rename Folder
- Search For Content
- Execute Method
- Cognitive
- DocuSign
- Release notes
- About the DocuSign activity package
- Project compatibility
- Setup
- DocuSign Scope
- Invoke DocuSign Operation
- Create Envelope
- Create Envelope And Send
- Create Envelope From Template
- Create Envelope Recipients
- Get Document
- Get Documents
- Get Envelope
- Get Form Data
- Send Envelope
- Update Envelope
- List Attachments
- List Custom Fields
- List Documents
- List Envelope Status Changes
- List Recipients
- Create Bulk Send List
- Create Bulk Send Request
- Get Bulk Send List
- Get Bulk Send Lists
- Create Template Custom Fields
- Create Template Recipients
- Get Template
- List Templates
- Google Vision
- Jira
- Release notes
- About the Jira activity package
- Project compatibility
- Setup
- Jira Scope
- Execute Method
- Add Attachment
- Delete Attachment
- Download Attachment
- Get Attachments
- Add Comment
- Delete Comment
- Get Comments
- Create Component
- Delete Component
- Get Components
- Search Dashboards
- Create Filter
- Get Filters
- Create Issue Link
- Delete Issue Link
- Get Issue Link Types
- Get Issue Links
- Add Watcher
- Assign Issue
- Clone Issue
- Create Issue
- Delete Issue
- Get Issue
- Get Watchers
- Remove Watcher
- Search Issues Using JQL
- Transition Issue
- Update Issue
- Create Project
- Delete Project
- Get Project Types
- Get Projects
- Update Project
- Get Transitions
- Create User
- Delete User
- Find Users
- Marketo
- Microsoft Dynamics
- Microsoft Dynamics Finance and Operations
- Microsoft Translator
- Microsoft Vision
- Oracle Integration Cloud
- Oracle NetSuite
- Salesforce
- Release notes
- About the Salesforce activity package
- Project compatibility
- Setup
- Quickstart
- Salesforce Application Scope
- Create Bulk API Job
- Get Bulk API Job
- Get Bulk API Job Results
- Start or Abort Bulk API Job
- Assign File
- Download File
- Upload File
- Composite Request
- Delete Record
- Get List View Records
- Get Record
- Insert Record
- Update Record
- Upsert Record
- Execute Report
- Execute SOQL
- Format Column Names
- Format Labels And Values
- Lightning REST API Request
- Search
- SAP BAPI
- ServiceNow
- Slack
- Smartsheet
- Release notes
- About the Smartsheet activity package
- Project compatibility
- Setup
- Technical references
- Quickstart: Working With Rows
- Smartsheet Application Scope
- Attach File
- Attach URL
- Delete Attachment
- Get Attachment
- List Attachments
- Add Comment
- Delete Comment
- Get Comment
- List Discussions
- Copy Folder
- Create Folder
- Delete Folder
- Get Folder
- List Folders
- Add Group Members
- Get Group
- List Groups
- Remove Group Member
- Get Report
- List Reports
- Add Rows
- Copy Rows
- Create Discussion on Row
- Delete Rows
- Get Row
- List Rows
- Move Rows
- Update Rows
- Copy Sheet
- Create Sheet
- Create Sheet From Template
- Download Sheet
- Get Sheet
- List Sheets
- Update Sheet
- Add User
- Get User
- List Users
- Remove User
- Copy Workspace
- Create Workspace
- List Workspaces
- Import Sheet From CSV / XLSX
- Invoke Smartsheet Operation
- Search Activity
- Send Via Email
- Share Object
- SuccessFactors
- Tableau
- Twilio
- Workato
- Workday
ServiceNow Application Scope
UiPath.ServiceNow.Activities.ServiceNowScopeActivity
The ServiceNow activities uses the OAuth 1.0 protocol to establish an authenticated connection between UiPath and your ServiceNow instance. This connection authorizes a Robot to call the ServiceNow APIs and access resources on your behalf.
To enable authorization, you create an OAuth application endpoint to your ServiceNow instance. Creating this endpoint generates an OAuth client application record, Client ID, and Client Secret to enable authenticated access to your instance.
After creating your endpoint, you enter your ServiceNow credentials along with the application endpoint URL, Client ID, and Client Secret in the ServiceNow Application Scope activity.
Integration user roles should only be assigned the minimum necessary permissions for performing the tasks enabled by the activities in this package (e.g., admin, itil, soap_ecc, and etc. should not be used for integration user roles). Inbound web services that modify tables, should be restricted to the appropriate system roles.
For more information, see the Roles section in the ServiceNow documentation.
The following steps and message sequence diagram is an example of how the activity works from design time (i.e., the activity dependencies and input/output properties) to run time.
- Complete the Setup steps.
- Add a activity for each
SecureString
input property (e.g., two total - one for Password and one for ClientSecret) - Add the ServiceNow Application Scope activity to your project.
- Enter values for the Authentication and Connection properties.
-
Create and enter a
IConnection
variable for Output properties.-
You can use this variable in subsequent uses of the ServiceNow Application Scope activity.
-
If you encounter issues using standard authentication, please see Standard Authentication Tips.
In the Body of the Activity
To build your project and enable the Object Wizard in other activities, you must use the Connection Wizard by clicking the Configure button.
To learn more, see the Wizards section in the About page.
Authentication
-
Username - The username for your ServiceNow instance. Enter a
String
variable.- This value may be different from your ServiceNow account if you have multiple instances.
- The Username is
associated with the Password. It's recommended that you generate
a
String
variable by following the Create Credential Assets section of the Setup guide. - To enter your
String
variable, use a activity that outputs your Credential Asset (see example below).
-
Password - The password (associated with the Username) to your ServiceNow instance. Enter a
String
orString
variable.- This value may be different from your ServiceNow account if you have multiple instances.
- The Username is
associated with the Password. It's recommended that you generate
a
String
variable by following the Create Credential Assets section of the Setup guide. - To enter your
String
variable, use a activity that outputs your Credential Asset (see example below).
-
Client Secret - The
SecureString
used to authorize communications between UiPath and your ServiceNow instance. Enter aSecureString
variable.- The ClientSecret gets generated for your ServiceNow instance when you complete an application registry. For more information, see the Setup OAuth section of the Setup guide.
- To generate a
SecureString
variable, see the Create Credential Assets section of the Setup guide. - To enter your
SecureString
variable, use a activity that outputs your Credential Asset (see example below).
-
ClientId - The auto-generated, unique ID of your application registry. Enter a
String
variable.- The ClientId gets generated for your ServiceNow instance when you complete an application registry. For more information, see the Setup OAuth section of the Setup guide.
- The ClientId is
associated with the ClientSecret. It's recommended that you
generate a
String
variable by following the Create Credential Assets section of the Setup guide. - To enter your
String
variable, use a activity that outputs your Credential Asset (see example below).
- Local Port (Optional) - The local port for redirect. Default value is
10001
. Enter a String orString
variable. - Use OAuth 2.0 - Check this to use OAuth2 code grant flow of ServiceNow.
Common
- DisplayName - The display
name of the activity. Enter a
String
orString
variable.
Connection
- EndpointURL - The URL of
your ServiceNow instance. Enter a
String
orString
variable. The URL should be to your ServiceNow instance and not the Redirect URL in your application registry.
Misc
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
Options
- ReportApiErrorAsException - When selected, API error responses are reported in BusinessActivityExecutionException by all child activities that use this application scope. When cleared, the child activity populates the API error message in the ResponseStatus output property and workflow execution continues. Check the ResponseStatus property to confirm successful execution.
Output
- ServiceNowConnection - A
record of your established connection that you can use in subsequent
ServiceNow Application Scope activities. Enter a
IConnection
variable (UiPath.BAF.Models.Connection.IConnection).
Use Existing Connection
-
ExistingServiceNowConnection - A connection record from a parent ServiceNow Application Scope activity that you can use instead of establishing a new connection. Enter a
IConnection
variable (UiPath.BAF.Models.Connection.IConnection).- The
IConnection
variable must be from a previously run SeriviceNow Scope activity (parent) that still has an active connection. - If you're unable to establish a connection using this property, try re-running your parent ServiceNow Application Scope activity.
- The
The following image shows an example of the activity dependency relationship and input/output property values.
For step-by-step instructions and examples, see the Quickstart guide.
In the ServiceNow activity pack, the Basic Authentication (username and password) can be used to run activities. The steps are delineated below:
Design Time
At Design Time enter the username and password with the endpoint URL and these details are saved. Note that the credentials are not validated with ServiceNow for basic authentication at the scope level. Only at a later stage when ServiceNow entities are fetched in an individual activity or at run time while running an activity are these basic authentication credentials used to authenticate.
If the basic authentication credentials provided are incorrect, then while loading the entity list an error will be thrown as it uses the saved basic authentication credentials to connect to ServiceNow and get entities/table names.
If the credentials (Username, Password, EndpointUrl) are correct the entities will be populated in the activity dropdown like below:
Runtime
Make sure the credentials are populated in the properties pane on the right.
If the credentials are correct the activity will run. If incorrect it will throw error at run time as shown below: