ServiceNow

ServiceNow é uma poderosa plataforma em nuvem projetada para agilizar e automatizar IT service management (ITSM), fluxos de trabalho e processos de negócio em toda a organização. O ServiceNow permite gerenciar incidentes, solicitações, tarefas, usuários e muito mais usando sua API extensiva.

Com o ServiceNow, você pode:

  • Automatizar fluxos de IT: Criar, ler, atualizar e excluir registros em qualquer tabela do ServiceNow, como incidents, tasks, change requests e users.
  • Integrar sistemas: Conectar o ServiceNow às suas outras ferramentas e processos para automação contínua.
  • Manter uma única fonte da verdade: Manter todos os dados de serviço e operações organizados e acessíveis.
  • Impulsionar eficiência operacional: Reduzir trabalho manual e melhorar a qualidade do serviço com fluxos personalizáveis e automação.

Na Zoen, a integração do ServiceNow permite que seus agentes interajam diretamente com a sua instância ServiceNow como parte dos seus fluxos. Os agentes podem criar, ler, atualizar ou excluir registros em qualquer tabela do ServiceNow e aproveitar dados de tickets ou usuários para automação e tomada de decisão sofisticadas. Esta integração conecta a automação de fluxos às operações de IT, capacitando seus agentes a gerenciar solicitações de serviço, incidentes, usuários e ativos sem intervenção manual. Ao conectar a Zoen ao ServiceNow, você pode automatizar tarefas de service management, melhorar tempos de resposta e garantir acesso consistente e seguro aos dados vitais de serviço da organização.

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.

Actions

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 as JSON object (e.g., {"short_description": "Issue title", "priority": "1"})

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 (e.g., incident, task, sys_user, change_request)
sysIdstringNoSpecific record sys_id (e.g., 6816f79cc0a8016401c5a33be04be441)
numberstringNoRecord number (e.g., INC0010001)
querystringNoEncoded query string (e.g., "active=true^priority=1")
limitnumberNoMaximum number of records to return (e.g., 10, 50, 100)
offsetnumberNoNumber of records to skip for pagination (e.g., 0, 10, 20)
fieldsstringNoComma-separated list of fields to return (e.g., sys_id,number,short_description,state)
displayValuestringNoReturn display values for reference fields: "true" (display only), "false" (sys_id only), or "all" (both)

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 (e.g., incident, task, sys_user, change_request)
sysIdstringYesRecord sys_id to update (e.g., 6816f79cc0a8016401c5a33be04be441)
fieldsjsonYesFields to update as JSON object (e.g., {"state": "2", "priority": "1"})

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 (e.g., incident, task, sys_user, change_request)
sysIdstringYesRecord sys_id to delete (e.g., 6816f79cc0a8016401c5a33be04be441)

Output

ParameterTypeDescription
successbooleanWhether the deletion was successful
metadatajsonOperation metadata

servicenow_aggregate

Compute aggregate statistics (count, sum, average, min, max, group by) over a ServiceNow table

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com\)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
tableNamestringYesTable name (e.g., incident, change_request, task)
querystringNoEncoded query string to filter records before aggregating (e.g., "active=true")
countbooleanNoReturn the count of matching records
groupBystringNoComma-separated fields to group results by (e.g., category,priority)
avgFieldsstringNoComma-separated numeric fields to average (e.g., reassignment_count)
sumFieldsstringNoComma-separated numeric fields to sum
minFieldsstringNoComma-separated fields to compute the minimum of
maxFieldsstringNoComma-separated fields to compute the maximum of
havingstringNoFilter on aggregate results (e.g., "count>5")
displayValuestringNoReturn display values for grouped reference fields: "true", "false", or "all"

Output

ParameterTypeDescription
resultjsonAggregate result. Ungrouped: {stats: {count, sum, avg, min, max}}. Grouped: array of {stats, groupby_fields}.
countnumberTotal matching record count (only present for ungrouped count queries)
metadatajsonOperation metadata (grouped, groupCount)

servicenow_list_attachments

List the attachments on a ServiceNow record

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com\)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
tableNamestringYesTable that owns the record (e.g., incident, change_request)
recordSysIdstringYessys_id of the record whose attachments should be listed
limitnumberNoMaximum number of attachments to return

Output

ParameterTypeDescription
attachmentsarrayAttachment metadata records
sys_idstringAttachment sys_id
file_namestringFile name
content_typestringMIME type
size_bytesstringFile size in bytes
download_linkstringDirect download URL for the file
metadatajsonOperation metadata (recordCount)

servicenow_download_attachment

Download an attachment file from ServiceNow by its sys_id

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com\)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
attachmentSysIdstringYessys_id of the attachment to download (from List Attachments)

Output

ParameterTypeDescription
filefileDownloaded attachment stored in execution files
contentstringBase64 encoded file content

servicenow_upload_attachment

Attach a file to a ServiceNow record

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com\)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
tableNamestringYesTable that owns the record (e.g., incident, change_request)
recordSysIdstringYessys_id of the record to attach the file to
fileNamestringYesName to give the uploaded file (e.g., logs.txt)
filefileNoFile to upload (UserFile object)

Output

ParameterTypeDescription
attachmentjsonCreated attachment metadata (sys_id, file_name, content_type, download_link)
metadatajsonOperation metadata

Triggers

A Trigger is a block that starts a workflow when an event happens in this service.

ServiceNow Change Request Created

Trigger workflow when a new change request is created in ServiceNow

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your ServiceNow Business Rule as Bearer token or X-Zoen-Webhook-Secret.
tableNamestringNoOptionally filter to a specific ServiceNow table

Output

ParameterTypeDescription
sysIdstringUnique system ID of the record
numberstringRecord number (e.g., INC0010001, CHG0010001)
tableNamestringServiceNow table name
shortDescriptionstringShort description of the record
descriptionstringFull description of the record
statestringCurrent state of the record
prioritystringPriority level (1=Critical, 2=High, 3=Moderate, 4=Low, 5=Planning)
assignedTostringUser assigned to this record
assignmentGroupstringGroup assigned to this record
createdBystringUser who created the record
createdOnstringWhen the record was created (ISO 8601)
updatedBystringUser who last updated the record
updatedOnstringWhen the record was last updated (ISO 8601)
typestringChange type (Normal, Standard, Emergency)
riskstringRisk level of the change
impactstringImpact level of the change
approvalstringApproval status
startDatestringPlanned start date
endDatestringPlanned end date
categorystringChange category
recordjsonFull change request record data

ServiceNow Change Request Updated

Trigger workflow when a change request is updated in ServiceNow

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your ServiceNow Business Rule as Bearer token or X-Zoen-Webhook-Secret.
tableNamestringNoOptionally filter to a specific ServiceNow table

Output

ParameterTypeDescription
sysIdstringUnique system ID of the record
numberstringRecord number (e.g., INC0010001, CHG0010001)
tableNamestringServiceNow table name
shortDescriptionstringShort description of the record
descriptionstringFull description of the record
statestringCurrent state of the record
prioritystringPriority level (1=Critical, 2=High, 3=Moderate, 4=Low, 5=Planning)
assignedTostringUser assigned to this record
assignmentGroupstringGroup assigned to this record
createdBystringUser who created the record
createdOnstringWhen the record was created (ISO 8601)
updatedBystringUser who last updated the record
updatedOnstringWhen the record was last updated (ISO 8601)
typestringChange type (Normal, Standard, Emergency)
riskstringRisk level of the change
impactstringImpact level of the change
approvalstringApproval status
startDatestringPlanned start date
endDatestringPlanned end date
categorystringChange category
recordjsonFull change request record data

ServiceNow Incident Created

Trigger workflow when a new incident is created in ServiceNow

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your ServiceNow Business Rule as Bearer token or X-Zoen-Webhook-Secret.
tableNamestringNoOptionally filter to a specific ServiceNow table

Output

ParameterTypeDescription
sysIdstringUnique system ID of the record
numberstringRecord number (e.g., INC0010001, CHG0010001)
tableNamestringServiceNow table name
shortDescriptionstringShort description of the record
descriptionstringFull description of the record
statestringCurrent state of the record
prioritystringPriority level (1=Critical, 2=High, 3=Moderate, 4=Low, 5=Planning)
assignedTostringUser assigned to this record
assignmentGroupstringGroup assigned to this record
createdBystringUser who created the record
createdOnstringWhen the record was created (ISO 8601)
updatedBystringUser who last updated the record
updatedOnstringWhen the record was last updated (ISO 8601)
urgencystringUrgency level (1=High, 2=Medium, 3=Low)
impactstringImpact level (1=High, 2=Medium, 3=Low)
categorystringIncident category
subcategorystringIncident subcategory
callerstringCaller/requester of the incident
resolvedBystringUser who resolved the incident
resolvedAtstringWhen the incident was resolved
closeNotesstringNotes added when the incident was closed
recordjsonFull incident record data

ServiceNow Incident Updated

Trigger workflow when an incident is updated in ServiceNow

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your ServiceNow Business Rule as Bearer token or X-Zoen-Webhook-Secret.
tableNamestringNoOptionally filter to a specific ServiceNow table

Output

ParameterTypeDescription
sysIdstringUnique system ID of the record
numberstringRecord number (e.g., INC0010001, CHG0010001)
tableNamestringServiceNow table name
shortDescriptionstringShort description of the record
descriptionstringFull description of the record
statestringCurrent state of the record
prioritystringPriority level (1=Critical, 2=High, 3=Moderate, 4=Low, 5=Planning)
assignedTostringUser assigned to this record
assignmentGroupstringGroup assigned to this record
createdBystringUser who created the record
createdOnstringWhen the record was created (ISO 8601)
updatedBystringUser who last updated the record
updatedOnstringWhen the record was last updated (ISO 8601)
urgencystringUrgency level (1=High, 2=Medium, 3=Low)
impactstringImpact level (1=High, 2=Medium, 3=Low)
categorystringIncident category
subcategorystringIncident subcategory
callerstringCaller/requester of the incident
resolvedBystringUser who resolved the incident
resolvedAtstringWhen the incident was resolved
closeNotesstringNotes added when the incident was closed
recordjsonFull incident record data

ServiceNow Webhook (All Events)

Trigger workflow on any ServiceNow webhook event

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your ServiceNow Business Rule as Bearer token or X-Zoen-Webhook-Secret.
tableNamestringNoOptionally filter to a specific ServiceNow table

Output

ParameterTypeDescription
sysIdstringUnique system ID of the record
numberstringRecord number (e.g., INC0010001, CHG0010001)
tableNamestringServiceNow table name
shortDescriptionstringShort description of the record
descriptionstringFull description of the record
statestringCurrent state of the record
prioritystringPriority level (1=Critical, 2=High, 3=Moderate, 4=Low, 5=Planning)
assignedTostringUser assigned to this record
assignmentGroupstringGroup assigned to this record
createdBystringUser who created the record
createdOnstringWhen the record was created (ISO 8601)
updatedBystringUser who last updated the record
updatedOnstringWhen the record was last updated (ISO 8601)
eventTypestringThe type of event that triggered this workflow (e.g., insert, update, delete)
categorystringRecord category
recordjsonFull record data from the webhook payload

On this page