- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2020 01:58 AM
Hi,
I am trying to create catalog request using this REST API -/api/sn_sc/servicecatalog/items/{sys_id}/order_now
i used Buy Item (Post)
Catalog is getting created successfully when I am passing this query parameter -
{"sysparm_quantity":"1","variables":{"description":"TESTING REST API EXPLORER","requestor_information":"true","requested_for":"f3b4d485db499010bdcfd5ab5e961972"},"sysparm_item_guid":"d9bcc9bc1b4e94108dbf42eddc4bcbd2","get_portal_messages":"true","sysparm_no_validation":"true"}
But instead of sys_id of 'requested_for', I want to pass name of the user. Please help.
Regards
Sri
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2020 03:02 AM
Hi Sri - Give it a try
{"sysparm_quantity":"1","variables":{"description":"TESTING REST API EXPLORER","requestor_information":"true","requested_for.user_name":"PASS USER NAME"},"sysparm_item_guid":"d9bcc9bc1b4e94108dbf42eddc4bcbd2","get_portal_messages":"true","sysparm_no_validation":"true"}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2020 03:02 AM
Hi Sri - Give it a try
{"sysparm_quantity":"1","variables":{"description":"TESTING REST API EXPLORER","requestor_information":"true","requested_for.user_name":"PASS USER NAME"},"sysparm_item_guid":"d9bcc9bc1b4e94108dbf42eddc4bcbd2","get_portal_messages":"true","sysparm_no_validation":"true"}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2021 01:20 PM
Did the solution work.? It is not working for me. I tried the same way, but the variable is empty in the RITM.
{"sysparm_quantity": "1","variables": {"u_effective_date": "2020-07-28","action_type": "Add","u_requested_for.user_name":"testitil","u_ad_grps":"2ac9c6c61bf9a010a5ccfd12dd4bcbd3","u_manager_name":"abu123","u_manager_id":"testitil","u_network_id":"ariyazu"},"get_portal_messages":"true","sysparm_no_validation":"true"}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2021 01:47 PM
Hi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2022 08:43 AM
Thank you, It worked