Using ServiceNow helps you manage work requests and services smoothly. It lets you track issues, automate tasks, and analyze how things are going to get better over time. ServiceNow makes sure your information stays safe with strong security measures. It's a great tool for organizing service tasks and keeping everything running smoothly and securely.
Integrating your application with a ServiceNow account can significantly streamline your business processes, automate tasks, and enable seamless data flow between systems.
Authentication
Before you begin, make sure you have the following information:
Connection Name
: Select a descriptive name for your connection that will be visible in all automations.Instance Name
: Identify your ServiceNow instance name from your ServiceNow URL; for example, 'acme' from https://acme.service-now.com.Select Authentication Type
: Choose the type of authentication you wish to use for the connection.Username/Password
OAuth 2.0
Password grant
API token
User Credentials Based Authentication
Username
: Provide the username you plan to use to connect to ServiceNow.Password
: Provide the password you plan to use to connect to ServiceNow.
OAuth 2.0 Based Authentication
Navigate to
All
>System OAuth
>Application Registry
and then clickNew
.On the interceptor page, click
Create an OAuth API endpoint for external clients
and then fill in the form.Note
In the Redirect URL section paste the following link https://webhooks-global.ext-alb.qa.unifyapps.com/api/connector-auth-callback/oauth.
Copy the Client ID and Secret and store them securely to prevent unauthorised access.
Password Grant Based Authentication
Provide the username you plan to use to connect to ServiceNow.
Provide the password you plan to use to connect to ServiceNow.
Provide the Client ID for the connection to use for authorization.
Provide the Client secret for this OAuth application.
Refer the OAuth 2.0 Section for details to obtain Client ID and Secret.
API Token Based Authentication
The Plugin
Navigate to
All
>Admin Center
>Application Manager
and verify the plug API Key and HMAC Authentication (com.glide.tokenbased_auth) is activated. If not please activate.
Create the Inbound Authentication Profile
Navigate to
All
>System Web Services
>API Access Policies
>Inbound Authentication Profile
.Click
New
.Click Create API Key authentication profiles.
Provide a descriptive name in the Name field.
In the Auth Parameter field, add either the Query Parameter or Auth Header record for x-sn-apikey.
Click
Submit
.
Create the REST API key
Navigate to
All
>System Web Services
>API Access Policies
>REST API Key
.Click
New
.Provide a descriptive name and select a user.
Use the form menu and choose
Save
.
The API Access Policy
Navigate to
All
>System Web Services
>API Access Policies
>REST API Access Policies
.Click
New
.Provide a descriptive name, and select the REST API you want to use.
Add your new API Authentication Profile to the embedded list on the form.
Click
Submit
.
Triggers
Trigger | Description |
| Triggers when an incident is created or updated in ServiceNow |
| Triggers when a record is created or updated in a selected table in ServiceNow |
| Triggers when a batch of records is created or updated in a selected table in ServiceNow |
| Triggers when a record is created in a selected table in ServiceNow |
| Triggers when a batch of records is created in a selected table in ServiceNow |
| Execute query on specified schedule and return results as list of records |
Actions
Actions | Description |
| Adds comment to a item in ServiceNow |
| Creates an order in ServiceNow |
| Creates a record in a table in ServiceNow |
| Creates a record using template in ServiceNow |
| Creates a new user record in the sys_user table in ServiceNow |
| Deletes a user record in the sys_user table in ServiceNow |
| Fetches attachments for a given record of the table in ServiceNow |
| Gets the contents of a file attachment in ServiceNow |
| Gets comment by SYS ID from ServiceNow |
| Gets object schema from ServiceNow |
| Get a table in ServiceNow |
| Get a table in ServiceNow |
| Gets user by ID from ServiceNow |
| List all the items in service catalogs in ServiceNow |
| List all the tables in ServiceNow |
| Searches for records using query in a table in ServiceNow |
| Updates a record in ServiceNow |
| Updates a record using template in ServiceNow |
| Updates a user in ServiceNow |
| Uploads an attachment to a given record of a table in ServiceNow |