- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2022 01:44 AM
Hi,
I've prepared a flow for a catalog item as below. The RITM having total 14 sequential tasks in which one pair of parallel tasks (a glimpse of the flow as below):-
May I have the code please with which I can mitigate the number of steps of the same flow.
1. I can use subflow, but I want to know the code I can use in below to create and close the sequential catalog tasks.
2. May I get the code to close the previous task to trigger a new task.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2022 12:59 AM
Hi Swagata,
Please define one more Flow variable same as Assignment group and add the SD values and retrieve same as Group sys_id step.
Thanks & Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2022 02:55 AM
Please add flow variables to handle the different assignment group and loop count (I've given 3 so my flow creates 2 catalog task in sequence) as shown in the screen. I assumed assignment group is a different for all task.
Use the below steps
1. Use Do until flow logic to iterate through
2. Create task to generate the task
Using the scripting I'm taking the value of assignment group sys_id
3. Set Flow variables to increment the value of variable loop count
Final Flow will look like the one given below,
Thanks & Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2022 09:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2022 10:26 PM
Hi,
Please use the below code,
var grp_sys_id= fd_data.flow_var.assignment_groups[fd_data.flow_var.loop_count];
return grp_sys_id;
Thanks & Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2022 11:28 PM
Hi Vasantharajan N,
Many thanks for your support. Its working now.
I need one more help. In my flow the short description and Description will be different for all the sequential task.
Like:-
1. 1st Task
SD: Device not working
Description:- Device not working
2. 2nd Task
SD:- Assignment of New device
Description:- Assignment of New device
Could you please suggest here?