
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2017 04:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2017 04:19 AM
Hi
Yes use the cart API - Service catalog script API
var cart = new Cart(null, gs.getUserID()); //Create the cart as the current user
var item = cart.addItem("sys_id of catalog item");
cart.setVariable(item, 'var name', 'value');
cart.setVariable(item, 'var name 2','other value');
var rc = cart.placeOrder();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2017 04:19 AM
Hi
Yes use the cart API - Service catalog script API
var cart = new Cart(null, gs.getUserID()); //Create the cart as the current user
var item = cart.addItem("sys_id of catalog item");
cart.setVariable(item, 'var name', 'value');
cart.setVariable(item, 'var name 2','other value');
var rc = cart.placeOrder();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2022 01:07 AM
Hey,
Do we need to use cart.setVariable(item, 'var name', 'value'); for each variable of that catalog item?
What to do for the variable sets?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2017 05:02 AM
Hi
I workflow activity we can use Create Task activity and select Task type as Requested Item.
Regards
Lakshmi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2017 05:03 AM
Hi
In workflow ,we can use Create Task activity and select Task type as Requested Item.
Regards
Lakshmi