ServiceNow v2
Use The ServiceNow IT Service Management (ITSM) solution to modernize the way you manage and deliver services to your users.
Case Management · ServiceNow
Configuration parameters
url— ServiceNow URL, in the format https://company.service-now.com/ (required)use_oauth— Use OAuth Loginuse_jwt— Use JWT Authenticationcredentials— Client ID/JWT Audience (aud)basic_credentials— Usernameprivate_key—kid— kid (Key Id)sub— subiss— iss (Issuer)ticket_type— Default ticket type for running ticket commands and fetching incidentsapi_version— ServiceNow API Version (e.g. 'v1')isFetch— Fetch incidentssysparm_query— The query to use when fetching incidentsfetch_limit— How many incidents to fetch each timefetch_time— First fetch timestamp (<number> <time unit>, e.g., 12 hours, 7 days, 3 months, 1 year)timestamp_field— Timestamp field to filter by (e.g., `opened_at`) This is how the filter is applied to the query: "ORDERBYopened_at^opened_at>[Last Run]". To prevent duplicate incidents, this field is mandatory for fetching incidents.incident_name— ServiceNow ticket column to be set as the incident name. Default is the incident numberincidentType— Incident typeget_attachments— Get incident attachmentsmirror_direction— Incident Mirroring Directionuse_display_value— Use Display Valuedisplay_date_format— Instance Date Formatcomment_tag— Comment Entry Tag To ServiceNowcomment_tag_from_servicenow— Comment Entry Tag From ServiceNowwork_notes_tag— Work Note Entry Tag To ServiceNowwork_notes_tag_from_servicenow— Work Note Entry Tag From ServiceNowfile_tag— File Entry Tag To ServiceNowfile_tag_from_service_now— File Entry Tag From ServiceNowupdate_timestamp_field— Timestamp field to query for updates as part of the mirroring flowmirror_limit— How many incidents to mirror incoming each timecustom_fields— Custom Fields to Mirrorclose_incident— Mirrored XSOAR Ticket closure methodserver_close_custom_state— Mirrored XSOAR Ticket custom close state codeserver_custom_close_code— Mirrored XSOAR Ticket custom close resolution code (overwrites the custom close state)close_ticket_multiple_options— Mirrored ServiceNow Ticket closure methodclose_custom_state— Mirrored ServiceNow Ticket custom close state codeclose_ticket— Close Mirrored ServiceNow Ticketmirror_notes_for_new_incidents— Mirror Existing Notes For New Fetched Incidentsproxy— Use system proxy settingsinsecure— Trust any certificate (not secure)incidentFetchInterval— Incidents Fetch Intervallook_back— Advanced: Minutes to look back when fetching
Commands (36)
-
get-mapping-fieldsReturns the list of fields for an incident type.
-
get-modified-remote-dataGets the list of incidents that were modified since the last update time. Note that this method is here for debugging purposes. The get-modified-remote-data command is used as part of a Mirroring feature, which is available from version 6.1.
-
get-remote-dataGet remote data from a remote incident. This method does not update the current incident, and should be used for debugging purposes.
-
get-remote-data-previewGet remote data preview from a remote incident. This method does not update the current incident, and is used to preview the ticket which would be updated.
-
servicenow-add-commentAdds a comment to the specified ticket, by ticket ID.
-
servicenow-add-linkAdds a link to the specified ticket.
-
servicenow-add-tagAdds a tag to a ticket. The added tag entry will be visible in the label_entry table and can be retrieved using the "!servicenow-query-table table_name=label_entry fields=title,table,sys_id,id_display,id_type" command.
-
servicenow-create-co-from-templateCreate a change request from a template.
-
servicenow-create-item-orderOrders the specified catalog item.
-
servicenow-create-recordCreates a new record in the specified ServiceNow table.
-
servicenow-create-ticketCreates new ServiceNow ticket.
-
servicenow-create-ticket-quick-actionCreates new ServiceNow ticket.
-
servicenow-delete-fileDelete an attachment from a ticket.
-
servicenow-delete-recordDeletes a record in the specified ServiceNow table.
-
servicenow-delete-ticketDeletes a ticket from ServiceNow.
-
servicenow-document-route-to-queueDocuments a route to a queue. Requires an installation of the Advanced Work Assignments plugin. An active queue and service channel to the designated table.
-
servicenow-generic-api-callGeneric call to ServiceNow api.
-
servicenow-get-item-detailsRetrieves item details by system ID.
-
servicenow-get-recordRetrieves record information, by record ID.
-
servicenow-get-table-nameGets table names by a label to use in commands.
-
servicenow-get-tasks-for-cogets the tasks associated to change request.
-
servicenow-get-ticketRetrieves ticket information by ticket ID.
-
servicenow-get-ticket-attachmentsRetrieves attachments from a ticket.
-
servicenow-get-ticket-notesGets notes from the specified ServiceNow ticket. Notes can be retrieved either by granting "Read permissions" for the sys_journal_field table, or by setting the `use_display_value` parameter to true.
-
servicenow-list-table-fieldsLists API fields for the specified ServiceNow table.
-
servicenow-oauth-loginThis function should be used once before running any command when using OAuth2 authentication.
-
servicenow-oauth-testTest the instance configuration when using OAuth2 authentication.
-
servicenow-query-computersQueries the cmdb_ci_computer table in ServiceNow.
-
servicenow-query-groupsQueries the sys_user_group table in ServiceNow.
-
servicenow-query-itemsQueries the sc_cat_item table in ServiceNow.
-
servicenow-query-tableQueries the specified table in ServiceNow.
-
servicenow-query-ticketsRetrieves ticket information according to the supplied query.
-
servicenow-query-usersQueries the sys_user table in ServiceNow.
-
servicenow-update-recordUpdates a record in the specified ServiceNow table.
-
servicenow-update-ticketUpdates the specified ticket.
-
servicenow-upload-fileUploads a file to the specified ticket.