Approval using for each in flow design
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 11:01 PM - edited 11-09-2023 04:31 AM
Hi All,
There's a variable with type as list collector, users can select multiple servers. Based on the servers selected, it should trigger the approval for the server owner. I have a flow design along with the subflow.
This is in the flow:
This is the subflow:
After submitting the request, in the flow context:
Please help me in resolving this issue. Thanks in advance.
@Ankur Bawiskar @Sandeep Rajput @Dr Atul G- LNG @Hemanth M1 @pavankumar17 @Anurag Tripathi @AshishKM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 11:04 PM
you are saying it's sending approval to correct server owner then what's the issue?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023 11:08 PM - edited 11-08-2023 11:26 PM
No, when I test the subflow using test button above, it's showing the proper sys_id of the server owner.
But there is some issue in the for each, even though I have selected multiple servers in the portal while submitting the request, it's showing 0 of 0 and no approvals are triggered in the RITM
Can you please help me with this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 01:03 AM - edited 11-09-2023 01:08 AM
Let's put a Look up records before the step For Each [5], where we'll query to get Servers records with the condition "Sys ID is one of <server_list_collector_variable>".
Then update the input of the step For Each to the Servers Records result above.
Sample below.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 01:12 AM