- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2025 10:31 PM
Hi Team,
I have a requirement where the client wants to get all the variable values by sending the RITM number.
Do we have any OOB APIs available right now to fetch all the catalog variables from a RITM. I dont see any option in the sn_sc service catalog API. Is table API a feasible Option?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2025 04:03 AM
I tried to get MRVS using this syntax variables.variableSetName , but it returned empty
1) So let them use Table API for normal variables on RITM table
2) Then inform them to use Table API on sc_multi_row_question_answer table with filter as Parent=RITM SysId
3) Then will get RITM sysId in the 1st call so they can use it in 2nd API call
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2025 10:26 PM
Looks like it's not the ACL. It shows passed in access analyzer. Any idea what could be the issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2025 09:36 PM
Hello @ShAn21 ,
You can get all the variables by using the OOB script include just by passing the RITM and adding it to the Scripted REST API.
new global.GlobalServiceCatalogUtil().getVariablesForTask(ritmGR, withMRVS /*boolean*/)
If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2025 12:43 AM
Thanks Najmuddin. This is great.
But for my current case I wont be able to use it as our customers are pushing us to use OOB API as much possible.