Mandala
Tools

ServiceNow

Create, read, update, and delete ServiceNow records

Usage Instructions

Integrate ServiceNow into your workflow. Create, read, update, and delete records in any ServiceNow table including incidents, tasks, change requests, users, and more.

Tools

servicenow_create_record

Create a new record in a ServiceNow table

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com\)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
tableNamestringYesTable name (e.g., incident, task, sys_user)
fieldsjsonYesFields to set on the record (JSON object)

Output

ParameterTypeDescription
recordjsonCreated ServiceNow record with sys_id and other fields
metadatajsonOperation metadata

servicenow_read_record

Read records from a ServiceNow table

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com\)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
tableNamestringYesTable name
sysIdstringNoSpecific record sys_id
numberstringNoRecord number (e.g., INC0010001)
querystringNoEncoded query string (e.g., "active=true^priority=1")
limitnumberNoMaximum number of records to return
fieldsstringNoComma-separated list of fields to return

Output

ParameterTypeDescription
recordsarrayArray of ServiceNow records
metadatajsonOperation metadata

servicenow_update_record

Update an existing record in a ServiceNow table

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com\)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
tableNamestringYesTable name
sysIdstringYesRecord sys_id to update
fieldsjsonYesFields to update (JSON object)

Output

ParameterTypeDescription
recordjsonUpdated ServiceNow record
metadatajsonOperation metadata

servicenow_delete_record

Delete a record from a ServiceNow table

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com\)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
tableNamestringYesTable name
sysIdstringYesRecord sys_id to delete

Output

ParameterTypeDescription
successbooleanWhether the deletion was successful
metadatajsonOperation metadata

Notes

  • Category: tools
  • Type: servicenow
ServiceNow