How to send REST API call to create RITM of catalog form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2023 02:40 AM
Hi Community,
Good Days !!
PFB:
My requirement: To create a RITM for a Item that I have made, via REST API Call.
I also need to send the variables values via API only.
So, I am confused in what table should I send the payload? Usually when we submit the catalog item form it creates records in "sc_request" table, which is linked to "sc_req_item".
How can we send the payload for custom variables on the form as well? it is stored in whole different table.
Kindly advice me with the solution.
Thanks in Advance,
Hritik.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2023 03:50 AM
Hi @Hritik ,
Use Service catalog api in the rest api explored and from the endpoint
reference : https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0686272
or you can also use cart api if its a custom endpoint (scripted rest api)
ex:
var cart = new Cart();
var item = cart.addItem(‘ sys id of the Catalog item’);
cart.setVariable(item, “variable name”, variable value);
var req = cart.placeOrder();
Please accept if this helps
Thank you,
Hemanth
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2023 04:02 AM
you can create after insert BR on RITM table and pick the variable values and send those in payload
OR
you can use flow designer in that RITM table and use REST Step
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2023 08:55 AM
Would you be able to guide me with the BR and payload?
I am trying to send the API payload from different application to SNOW that will create RITM with dynamic values of fields of form sent by third party too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2023 09:16 PM
there are numerous community blogs/questions regarding this which should help you.
I would suggest you start from your side and it will be learning for you as well.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader