- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2021 06:14 AM
I have a catalog item with a few variables. I am able to create RITM's for this. But I want to modify an RITM at a later time i.e I want to update one of the variable's value of the RITM using REST API. How can I achieve this? Is there an out of the box API to do this?
Thank you
Solved! Go to Solution.
- Labels:
-
Request Management
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2021 06:36 AM
I have shared solution in this 1st link
Update requested item variables using REST API
How should a third part app update existing Request Item variables via API?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2021 06:17 AM
Hi,
Please take a look at the ServiceNow Rest API Explorer.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2021 06:27 AM
I already went through this. I am able to query an RITM with variables as parameters(GET) but I not able to figure out how to update a particular variable of an RITM using PUT or PATCH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2021 06:34 AM
Hi,
You cannot update variables directly using OOB API unless you use Table API on this table "sc_item_option_mtom"
Catalog variable values are stores in the table Variable Ownership [sc_item_option_mtom] and sc_item_option.
I would suggest to create custom Scripted REST API which accepts RITM number, Variable Name and the Variable value to be updated
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2021 06:36 AM
I have shared solution in this 1st link
Update requested item variables using REST API
How should a third part app update existing Request Item variables via API?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader