
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2019 06:59 AM
Hi Team
Can you please tell me how to get the Variables of RITM using Rest Method.
Regards,
Priya
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2019 10:07 AM
Below link will hepl you to achieve this.
Regards,
Priya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2019 03:49 AM
Hi Priya,
you can have it based on out of the box API.
If not then go ahead with scripted rest api
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
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
09-13-2019 07:19 AM
Go for Scripted Rest and add your script that can pull variable and pass it as rest output. Refer the below link for more details:
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2019 07:36 AM
Hi Priya,
Sample endpoint here
query I have given is number=RITM0010190
URL: https://instanceName.service-now.com/api/now/table/sc_req_item?sysparm_query=number%3DRITM0010190&sysparm_fields=number%2Cvariables.test%2Cvariables.vendor_lot_number
HTTP Method: GET
give all the variables name in the sysparm_fields as variables.<variableName>
separate each variable with %2C
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
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
04-07-2021 01:09 PM
I used this solution and it works for me very well. Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2021 07:49 AM