Create Catalog task via Rest API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2023 10:04 PM
Hello All,
one of our external system wants to create and catalog task in ServiceNow , do we have any OOB API to create only (Sc_task) record , post creation we need to associate to an Item ,
or should we go with scripted rest API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2023 10:28 PM - edited 05-07-2023 10:29 PM
Quite simple. use Cart API and scripted rest API.
Get payload from API , parse it in scripted rest API and add variable to a cat item using Cart APi and place order. You may get request number at end of creation.
Please check docs/ ref on how to parse payload from API in scripted rest API and how to create a task in server script using variables from the payload.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2023 11:19 PM
Hello snehal, can I have any sample script for this

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2023 11:59 PM
@Michael51 Here is the reference for Cart JS API https://developer.servicenow.com/print_page.do?release=rome&category=null&identifier=c_CartJSScoped&...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2023 12:18 AM
You should try to be hands on and script on own. It is not complex. parse the APi payload , instiantiate cart API and add variables and place order. good luck