ServiceNow® APIs let you build custom applications and experiences. APIs were enhanced and updated in the Xanadu release.

API highlights for the Xanadu release

  • Use server-side JavaScript APIs in scripts to change the application functionality.
  • Run client APIs whenever a client-based event occurs, such as when a form loads, a form is submitted, or a field value changes.
  • Use inbound REST APIs to interact with various ServiceNow functionalities within your application.

See API implementation and reference for more information.

New in the Xanadu release

Table 3. New client mobile APIs and additional methods to existing client mobile APIs in Xanadu
Class Methods
m_form - Client
  • addErrorMessage()
  • addInfoMessage()
  • getValue()
  • setAffectedInputs()
  • setValue()
MobileScriptIncludeCaller - Client
  • MobileScriptIncludeCaller()
  • addParam()
  • call()
Table 4. New REST APIs in Xanadu
Class Methods
Cloud Services Catalog API
  • GET /now/cmp_catalog_api/itemsbyciclass
  • GET /now/cmp_catalog_api/itemsbyrb
  • GET /now/cmp_catalog_api/services
  • GET /now/cmp_catalog_api/stacks
  • GET /now/cmp_catalog_api/status
  • POST /now/cmp_catalog_api/submitoprequest
  • POST /now/cmp_catalog_api/submitrequest
Proactive Engagement API CREATE /api/sn_pren/self_remediation/experience_issue/create
Table 5. New client classes and additional methods to existing client classes in the ServiceNow store
Application App version Class Methods
openFrameAPI - Client getAWAAgentPresence()
Table 6. New scoped classes and additional methods to existing scoped classes in the ServiceNow store
Application App version Class Methods
sb - Scoped, Global
  • archive()
  • checkout()
  • publish()
  • retire()
Table 7. New global classes and additional methods to existing global classes in the ServiceNow store
Application App version Class Methods
sb - Scoped, Global
  • archive()
  • checkout()
  • publish()
  • retire()

Changed in this release

Table 9. Changed scoped classes in Xanadu
Class Methods
HistoryWalker - Scoped, Global Added parameter for specifying the type of history walker implementation to use.

HistoryWalker()

Table 10. Changed global classes in Xanadu
Class Methods
GlideAggregate - Global Added support for dynamic schema.
  • addAggregate()
  • addHaving()
  • getValue()
  • groupBy()
  • orderBy()
  • orderByAggregate()
GlideRecord - Global Added support for dynamic schema.
  • addQuery()
  • getDisplayValue()
  • getValue()
  • orderBy()
  • orderByDesc()
  • setDisplayValue()
  • setValue()
HistoryWalker - Scoped, Global Added parameter for specifying the type of history walker implementation to use.

HistoryWalker()

Table 11. Changed REST APIs in Xanadu
Class Methods
AWA Manual Assignment API Added new request body parameters.

POST /awa/workitems/{work_item_sys_id}/assignments

Continuous Integration/Continuous Delivery (CICD) API Added new optional query parameters for specifying whether to run a test suite as a performance test and in Cloud Runner.

POST /sn_cicd/testsuite/run

Table 12. Changed scoped classes in the ServiceNow store
Application App version Class Methods
Lead to Cash Core V1.3.1 LeadtoCashCore - Scoped The LeadtoCashCore script include is enhanced to support reconfiguration use cases:
  • createInstance() - Returns _state identifying whether the entity record is in an active or inactive state.
  • delta() - additionalParams now supports the ability to ignore attributes to compare in source and dirtyJSONs.
  • effect() - additionalParams now supports the ability to provide context variable keys instead of dictionary field names. Additionally, effect() returns the _state parameter identifying whether the entity record is in an active or inactive state.
Lead to Cash Core V2.0.0 LeadtoCashCore - Scoped commitInstance() now returns the dataObject object which displays the status of an asynchronous transaction for users to review and submit the transaction for further fulfillment.
Table 13. Changed client APIs in the ServiceNow store
Class Methods
CSM Openframe V1.0 openFrameAPI - Client Added workitem_rejected and workitem_accepted response payloads.

subscribe()

CSM Openframe V1.1 openFrameAPI - Client Added isAutoAccepted flag in response payloads.

subscribe()

Activation information

The following APIs are available by default:
  • Cloud Services Catalog API
  • DynamicSchemaAPI
  • GlideAggregate
  • GlideDate
  • GlideDynamicAttributeStore
  • GlideElementAttributeStore
  • GlideRecord
  • HistoryWalker
  • NumberFormatter
  • openFrameAPI
  • PDAutomationProvider
  • PDFGenerationAPI
  • PlaybookExperience
  • Product Catalog Open API
  • Service Order Open API
The following APIs require plugin activation:
  • The Appointment Open API requires the following plugins to be activated:
    • Appointment Booking (com.snc.appointment_booking)
    • Field Service Management (com.snc.work_management)
    • Field Service Management for Telecommunications (com.sn_fsmt)
    • Telecommunication Open APIs (com.sn_tmf_api)
  • The AWA Manual Assignment API requires the Advanced Work Assignment (com.glide.awa) plugin to be activated.
  • The LeadtoCashCore script include requires the Lead to Cash Core (com.snd.l2c.core) plugin to be activated.
  • The PersonalAuthAPI requires the Personal Authentication (com.snc.sn_ihub_personal_auth) plugin to be activated.
  • The Proactive Engagement API requires the Proactive Engagement (proactive-engagement) plugin to be activated.
  • The PSBPublicAPIUtil requires the Service Bridge for Providers application (sn_sb_pro) and the Service Bridge Base (sn_sb) plugins to be activated.
  • The Resource Inventory Open API requires the Customer Network Inventory Core application (com.app-ni-core) plugin to be activated.
  • The Service Contract API requires the following plugins to be activated:
    • Customer Contracts and Entitlements (com.sn_pss_core)
    • Customer Service Install Base Management (com.snc.install)
    • Product Catalog Management Core (com.sn_prd)
  • The Service Test Management Open API requires the Customer Service Problem Management (com.sn_sprb_mgmt) plugin to be activated.
  • The Verify Entitlements API requires the Entitlement Verification (sn_ent_verify) plugin to be activated.
  • The WSD Extra Service Request API requires the Workplace Reservation Management (com.sn_wsd_rsv) plugin to be activated.
  • The WSD Reservable API requires the Workplace Reservation Management (com.sn_wsd_rsv) plugin to be activated.
  • The WSD Reservable V2 API requires the Workplace Reservation Management (com.sn_wsd_rsv) plugin to be activated.