Servicenow

Discover how to automate ServiceNow tasks in StackAI. Learn about the most common ServiceNow actions, their required inputs, configurations, and outputs with clear examples.

What is Servicenow?

Servicenow is a leading IT service management platform. This node allows you to automate ServiceNow operations such as creating, updating, retrieving, and managing incidents, records, and other ServiceNow resources directly within your StackAI workflows.


Establishing a Connection

1. Connection Name

Description: A user-friendly name for your connection. This helps you identify it among other connections in Stack AI.

Where to Find: You create this name yourself when setting up the connection.

Example:

  • "Jenny's ServiceNow Connection"

  • "ITSM Production Instance"

2. Instance URL

Description: The web address (URL) of your ServiceNow instance. This is where API requests will be sent.

Where to Find:

  • Log in to your ServiceNow account in your browser.

  • The URL in your browser’s address bar is your instance URL.

  • It usually looks like: https://<instance>.service-now.com

Example:

  • https://acmecompany.service-now.com

  • https://dev12345.service-now.com

3. Username

Description: The ServiceNow username that Stack AI will use to authenticate API requests. This should be a user account with permissions to perform the actions you want (e.g., create, update, or read records).

Where to Find:

  • Provided by your ServiceNow administrator, or

  • The username you use to log in to ServiceNow.

Example:

  • api.integration

  • john.doe

4. Password

Description: The password for the ServiceNow user account above. This is used together with the username for authentication.

Where to Find:

  • The password you use to log in to ServiceNow, or

  • Provided by your ServiceNow administrator (especially for dedicated API users).

Example:

  • yourSecurePassword123!


Actions Summary Table

Action
Required Inputs
Optional Inputs
Outputs

Create Record in ServiceNow Table

Table Name, Record Data

Display Values, Exclude Reference Link, Fields to Return, Input Display Value, Suppress Auto Sys Field, View

Status Code, Headers, Body

Delete Record from ServiceNow Table

Record ID

Table Name, Query No Domain

Status Code, Headers, Body

Get Record by ID from ServiceNow Table

Table Name, Record ID

Display Values, Exclude Reference Link, Fields to Return, View, Query No Domain

Status Code, Headers, Body

Get Records from ServiceNow Table

Table Name, Query Filter, Display Values, Exclude Reference Link, Suppress Pagination Header, Fields to Return, Input Display Value, Suppress Auto Sys Field, View, Query Category, Query No Domain, Skip Count Query

Status Code, Headers, Body

Partially Update Record in ServiceNow Table

Table Name, Record ID, Record Data

Display Values, Exclude Reference Link, Fields to Return, Input Display Value, Suppress Auto Sys Field, View, Query No Domain

Status Code, Headers, Body

Update Record in ServiceNow Table

Table Name, Record ID, Record Data

Display Values, Exclude Reference Link, Fields to Return, Input Display Value, Suppress Auto Sys Field, View, Sysparm Query No Domain

Status Code, Headers, Body


Advanced Settings

  • Retry on Failure: Enable retrying when the node execution fails

  • Fallback Branch: Create a separate branch that executes when this node fails, allowing you to handle errors gracefullyCreate a separate branch that executes when this node fails, allowing you to handle errors gracefully

Last updated

Was this helpful?