ServiceNow® APIs let you build custom applications and experiences. APIs were enhanced and updated in the Yokohama release.
API highlights for the Yokohama 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 for more information.
New in the Yokohama
release
Changed in this
release
Table 7. Changed scoped classes in Yokohama
| Class |
Methods |
|
- convertToPDF()
- convertToPDFWithHeaderFooter()
New properties, glide.pdf.url.whitelisting.enabled and com.snc.pdf.whitelisted_urls, have been added to ensure whether external URLs provided should be rendered in the PDF output.
A new property, accessibilityEnabled, has been added for PDF accessibility support.
|
Table 8. Changed global classes in Yokohama
| Class |
Methods |
|
- convertToPDF()
- convertToPDFWithHeaderFooter()
New properties, glide.pdf.url.whitelisting.enabled and com.snc.pdf.whitelisted_urls, have been added to ensure whether external URLs provided should be rendered in the PDF output.
A new property, accessibilityEnabled, has been added for PDF accessibility support.
|
Table 9. Changed REST APIs in Yokohama
| API |
Endpoints |
|
POST /now/attachment/file: A new parameter, creation_time, can be used to capture attachment creation times when the Now Mobile app is offline and the attachment is uploaded to a record at a later time. |
Table 10. Changed scoped classes in the ServiceNow Store
| Application |
App Version |
Class |
Methods |
| Lead to Cash Core |
V1.4 |
|
Enhanced the performance of the Commit Instance API to improve number generation for the number field:
- effect(): The _records_count return object is added to provide details about newly inserted records for a particular table, such as the table name and number of inserted records.
- commitInstance(): A new additional parameter, useNumberGenerator, is added to optionally generate and apply sys_ids to new table records in bulk.
|
| ATF Test Generator and Cloud Runner |
2.7.2 |
|
Added the testSuite parameter allowing you to set the name of the new test suite that is created during test generation. |
Table 11. Changed client classes in the ServiceNow Store
| Application |
App Version |
Class |
Methods |
| Customer Service Management |
v1.2 |
|
subscribe(): Added new events
- openframe_wrap_up_submitted
- openframe_heart_beat
|
| Mobile SDK |
v2.9.0 |
|
Updated available chat UI color defaults. |
| Mobile SDK |
v2.9.0 |
|
Updated available web view UI color defaults. |
| Mobile SDK |
v2.9.0 |
|
Updated available chat UI color defaults. |
| Mobile SDK |
v2.9.0 |
|
Updated available web view UI color defaults. |
Table 12. Changed global classes in the ServiceNow Store
| Application |
App Version |
Class |
Methods |
| ATF Test Generator and Cloud Runner |
2.7.2 |
|
Added the testSuite parameter allowing you to set the name of the new test suite that is created during test generation. |
Table 13. Changed REST APIs in the ServiceNow Store
| Application |
App Version |
API |
Endpoints |
| Accounts Payable Operations |
v2.0.0 |
|
Add properties supporting bill-to address information.
- POST /sn_spend_intg/ap_invoice/cxml
- POST /sn_spend_intg/ap_invoice/json
|
| ATF Test Generator and Cloud Runner |
2.7.2 |
|
Added the testSuite parameter allowing you to set the name of the new test suite that is created during test generation. |
| Order Management |
v11.3.0 |
|
The productSpecification request parameter has changed from required to optional.
- PATCH /sn_ind_tmt_orm/order/productOrder/{id}
- PATCH /sn_ind_tmt_orm/productorder/{id}
- POST /sn_ind_tmt_orm/order/productOrder
- POST /sn_ind_tmt_orm/productorder
|
| Order Management
|
v12.5.0 |
|
The productSpecification request parameter has changed from required to optional. These endpoints now retrieve all product inventory records. In prior releases, product inventory records without a
specified product specification weren't returned.
- POST /api/sn_prd_invt_/product
- GET /api/sn_prd_invt_/product
- GET /api/sn_prd_invt_/product/{id}
|
| Product Catalog |
v14.1.0 |
|
The ability to specify product bundles has been added to the following endpoints:
- GET /sn_tmf_api/ catalogmanagement/catalog
- GET /sn_tmf_api/ catalogmanagement/catalog/{id}
- GET /sn_tmf_api/ catalogmanagement/productOffering
- GET /sn_tmf_api/ catalogmanagement/productOffering/{id}
- PATCH /sn_tmf_api/ catalogmanagement/productOffering/{id}
- POST /sn_tmf_api/ catalogmanagement/productOffering
- GET /sn_tmf_api/ catalogmanagement/productSpecification
- GET/sn_tmf_api/ catalogmanagement/productSpecification/{id}
- PATCH /sn_tmf_api/ catalogmanagement/productSpecification/{id}
- POST /sn_tmf_api/ catalogmanagement/productSpecification
|
Activation information
The following APIs are available by default:
- Attachment
- Console
- Fetch
- Fetch.Headers
- Fetch.Request
- Fetch.Response
- Fetch.RequestInit
- GlideDynamicAttribute
- GlideDynamicAttributeStore
- GlideElementDynamicAttributeStore
- GlideTransientDynamicAttribute
- GlideUser
- openFrameAPI
- PDFGenerationAPI
- RESTMessageV2
- ScriptableUriMatcher
- SOAPMessageV2
- UriMatcher
- UriMatcherResponse
The following APIs require plugin activation:
- The AI Asset API requires the Asset Classes (sn_ent) plugin to be activated.
- The AP Invoice API requires the Accounts Payable Invoice Processing (com.sn_ap_apm) plugin to be activated.
- The AWA Offer Work API requires the Advanced Work Assignment (com.glide.awa) plugin to be activated.
- The IBQConfigBase API requires the Sales and Service API Core (com.sn_tmt_core) plugin to be activated.
- The lead API requires the Lead Management Data Model (sn_lead_mgmt_core) plugin to be activated.
- The Mobile SDK requires the Mobile SDK Android library (NowSDK) or the Mobile SDK iOS library to be downloaded and installed.
- The openFrame API requires the com.sn_openframe_store plugin to be activated.
- The OrderUtil API (script include) requires the Order Management (com.sn_ind_tmt_orm) plugin to be activated.
- The ProcessMiningIntegrationAPI requires the Process Mining Core (com.sn_process_optimization) plugin to be activated.
- The Product Order Open and the Product Inventory Open APIs require Order Management (sn_ind_tmt_orm) plugin to be activated.
- The Sales Agreement API requires the following plugins to be activated:
- Sales Agreement Data Model (com.sn_sales_agmt_core)
- Product Catalog Management Core (com.sn_prd_pm)
- Pricing (com.sn_csm_pricing)
- 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 v_record API requires the Remote Tables (com.glide.script.vtable) plugin to be activated.
- The Verify Entitlements API requires the Entitlement Verification (com.sn_ent_verify) plugin to be activated.