How to submit Request on behalf of others
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2017 10:29 PM
Hi All,
We have a requirement in Onboarding request where the HR role users fill in 1st half of the form and the manager have to fill in the rest of the item.
i.e., suppose we are raising request for the user 'test candidate', HR will fill details about him and Manager has to fill the details like if the user needs laptop / Desktop.
So our requirement is:
Once HR fills few fields on Onboard form, If HR adds the item to their cart, (they will select the requested for (variable on form) as the Manager) And since manager is the Requested For user, his cart should be updated with the item.
Is it possible in ServiceNow?
Regards,
Sneha
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2019 10:50 PM
Hello,
It doesn't look like it is possible using the Service Catalog REST API.
But it is possible using the CartJS api - https://developer.servicenow.com/app.do#!/api_doc?v=jakarta&id=r_CJSS-getRequestedFor
var cart = new sn_sc.CartJS();
cart.setRequestedFor("039c516237b1300054b6a3549dbe5dfc")
So you could write your own scripted REST API and route the information through the CartJS api instead. See this for inspiration CartJS API to add multiple item to cart and submit order
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2019 11:06 PM
Hi Pooja, Thanks for the response. But I doubt if this fits my requirement.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2019 11:20 PM
Hello,
Try it once, and please check.
Please mark correct & helpful; if it's useful to you.
Thanks & Regards,
Pooja Devkar
Please mark correct & helpful; if it's useful to you.
Thanks & Regards,
Pooja Devkar