multiple approvals not triggering from a list collector variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago - last edited 6 hours ago
Hi Team,
I have one list collector variable for 'additional approver' field which has defined in a flow to trigger approvals.
Its working for one record.
However not for multiple records, i tried with Look up records action with for each logic but still didn't work.
Can anyone please help on how to fix the same.
Thanks,
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Get the list collector value (Comma separated sys_ids)
Split the string into an array
Use a script step or script action:
return
fd_data.trigger.current.variables.additional
_approver.split(",");
For each *Loop through the array of sys_ids
Look up for record
table: sys_user
condition;
sys id=current item
Ask for approval * Approver=looked-up user record
If you are using catalog item approvals, you can avoid the loop by writing a flow script that returns an array of approvers or use an Approve Rule if it fits your requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Hi Shan,
May i know where to include this list collector seperated value?
is it after look up records?
Please help!
Thanks,
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Hi @Sri56 ,
Please refer this article
Using list collector in Flow Designer 'For Each loop' by converting string into array of string
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
still not working!!