- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2022 04:16 AM
How to create multiple catalog tasks for single RITM using workflow/Flow designer?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2022 10:02 PM
Hi
This video is what you all need to configure: https://www.youtube.com/watch?v=xOc342NUzI8
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2022 11:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2022 02:45 AM
Hi sambasiva,
Can you please Go to the flow properties and change to the system user. Also to set the value field from variable please include an action Get catalog variables and select your item in that action and use those variables to set the value in field.
Please mark correct if helpful
Thanks
Mohit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2022 05:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2022 08:46 PM
Can answers get as worthless as this one? Please put effort if you are to participate on the forums. Here is a real answer:
Using workflow there is no way using the out-of-the-box workflow activities to achieve what you want. Instead you will need to write a script. A common requirement is to create a catalog task for each MRVS entry. Therefore when you loop through the MRVS JSON array, your script will look like this while in a workflow on the sc_req_item table:
(function() {
var task = new GlideRecord("sc_task");
task.request_item = current.sys_id;
task.parent = current.sys_id;
task.short_description = "MRVS Task 1";
task.description = "Please do the following:\n";
task.assignment_group = "";
task.assigned_to = "";
// set other fields that you require
task.insert();
})();
Then you'll probably want a wait-for-condition activity for all tasks to complete, that script will look like
answer = (function() {
var ctask = new GlideRecord('sc_task');
ctask.addQuery('request_item', current.sys_id + '');
ctask.addQuery('state', 'NOT IN', '3,7'); // Closed Complete, Closed Cancelled, etc
ctask.query();
return !ctask.hasNext();
})();