MarketplaceStudioSnippetServiceNow API Snippets Pack

Create your first automation in just a few minutes.Try Studio Web

ServiceNow API Snippets Pack

ServiceNow API Snippets Pack

by Internal Labs

StarStarStarStarStarStarStarStarStarStar

0

Snippet

Downloads

344

back button
back button
carouselImage0
next button
next button

Summary

Summary

Components to perform different actions on the ServiceNow platform using the REST API endpoints.

Overview

Overview

Provides an introduction on how to use ServiceNow API endpoints for UiPath automation. Not an exhaustive implementation, but should be considered more as a starting point and an example on how to use the HTTP Request activity to perform different actions on ServiceNow platform. API automation is faster at run-time compared with traditional UI automation, at the cost of additional learning required for the API endpoints methods and parameters.

Several components to perform different actions in ServiceNow application using the API:

  • DownloadAttachment.xaml - This workflow gets the binary file attachment for a given Attachement ID value and saves it in a specified File Path.
  • DownloadTaskList.xaml - Download the tasks filtered by specified criteria in one of the supported output formats. The output file can be in different formats, such as XLSX, XLS, PDF, CSV. Other formats are supported by Service Now api, but not implemented or tested in this workflow.
  • GetAttachmentsList.xaml - This workflow gets the attachments list for a record in a given table. The output if formated as a DataTable with 4 columns for the attachment ID, file name, content type and size in bytes.
  • GetRecord.xaml - This method retrieves the record identified by a specified Identifier in a given table.The Display Values are returned, instead of internal values and the reference links are not returned.
  • GetRecords.xaml - Retrieves multiple records for the specified table filtered by specified criteria. We can also specify is an array with the fields that are retrieved from the webservice. Correspond to the Service Now sysparm_fields parameter.
  • GetRequestItemVariables.xaml - This method retrieves the variables for a given request item. Only the variable name (internal) and value are retrieved. Uses the GetRecords.xaml workflow configured for the Variables table (sc_item_option_mtom), the query parameter for Request Item filtering and the output includes only two fields - variable's name and value.
  • UpdateRecord.xaml - This workflow updates the specified record with the new data contained in the input DataTable object. At least two columns are required, first column is used for field name and the second column is used for new value.

Communication with ServiceNow application is done using the HTTP Request activity, found in the UiPath.WebAPI.Activities package. All requests are authenticated using HTTP Basic Authentication which is secure only when secure HTTP is used.

How to get a test environment for ServiceNow:

Signup for a ServiceNow account here.

Login to ServiceNow, after account is created.

Request a test instance. Note: the instance is deleted after 10 days of inactivity.

Login to your test instance.

Features

Features

Provides an introduction on how to use ServiceNow API endpoints for UiPath automation. API automation is faster at run-time compared with traditional UI automation, at the cost of additional learning required for the API endpoints methods and parameters.

Additional Information

Additional Information

Dependencies

UiPath.WebAPI.Activities

Code Language

Visual Basic

Publisher

Internal Labs

Visit publisher's page

License & Privacy

License Agreement

Privacy Terms

Technical

Version

1.0.0

Updated

February 18, 2020

Works with

Studio: 18.1 - 22.10

Certification

Silver Certified

Application

ServiceNow

Support

UiPath Community Support

Resources