- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2020 10:49 PM
Hi,
I am trying to order a Service Catalog item using REST API Explorer.
But I don't know how to set values in REST API Explorer.
So please let me know what value to enter in "Path parameters" and so on.
Regards,
bunai
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2020 10:59 PM
Hi,
please check below steps:
1) from left nav open REST API Explorer
2) from namespace select -> sn_sc
3) select buy item API
4) give sys_id of the catalog item
5) give body as RAW JSON; ensure you give your variable names; I have given group with value as group sys_id
{
'sysparm_id': 'a96250e407d01410540bf2508c1ed014',
'sysparm_quantity': '1',
'variables':{
'test': 'hello',
'group': 'd625dccec0a8016700a222a0f7900d06'
}
}
Buy Item (POST) -> give sys_id of the catalog item in the URL
https://instanceName.service-now.com/api/sn_sc/servicecatalog/items/a96250e407d01410540bf2508c1ed014/order_now
Request Body: highlighted in bold is sys_id of catalog item
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
05-13-2020 02:03 AM
Hi,
you will have to set it manually;
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
05-13-2020 07:42 PM
Hi,
I understand!
Thank you so much!
Regards,
bunai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2023 11:25 AM
Hi Ankur,
In This context. How can we set “requested for” apart from sys_id and how can we add attachments to the RITM.
Thanks,
Ajay Chinthamani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2024 07:44 AM
@Ajay Ch @Ankur Bawiskar
Did you get any solution for this - "How can we set “requested for” in the RITM ? Through above payload."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2020 11:12 PM
Hello,
Try the below link that might help you.
https://hi.service-now.com/kb_view.do?sysparm_article=KB0686272
Mark helpful or correct based on impact.
Regards,
Priyanka A.