
- 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-27-2017 12:46 PM
Iakshmi,
How do you add variables to the request item? I do not see that option on 'create task'; only on 'catalog task'.
Thank you,
Lida
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2017 10:41 PM
Hi Lida
You need to use my approach - see the first reply. You do it from a script activity.
Just creating a request with a task activity will not give you anything usefull
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2017 07:38 AM
Hi Lars,
That is what I ended up doing, using the script activity rather than create task. Thanks.
Lida