Get RITM Variables via SRAPI

RITM Variables SRAPI

Download: Version 2.1

Article w/detailed documentation


This Scripted REST API provides a list of all populated variables on a RITM. It’s provided for free and without advertising.
Note: Currently, this returns only actual values, not display values. Version 2.1 added the ability to get either or both.

Usage

Endpoint: GET https://INSTANCE.service-now.com/api/13231/ritm\_vars\_api
Header: “ritm” - a comma-separated list of RITM numbers (ex: RITM001003) to retrieve all populated variables for.
Response: A JSON-formatted object “result” with one node for each RITM that was requested and found. The RITM nodes are objects, which themselves contain a key/value pair for each populated variable associated with that RITM, where the key is the variable name, and the value is the variable’s value.


Example request (JavaScript)

Example response

Search