- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2025 08:38 AM
I have a flow that will go out and check accountexpiry on accounts that are synced from our AD. I want this to generate an approval and task based on that approval/reject. All this works fine but if there is more than 1 look up record(s) it will generate the approval for the first one, wait until approved/reject and then generate an approval for the 2nd one. Is it possible in this case of 2 or more records are found to just generate all the approvals at once (these approvals likely go to different managers)?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2025 09:33 AM
move the logic of approval, task creation based on approval/rejection in subflow
Subflow will accept few inputs such as Task information to be created, User for approval
Then call this subflow within the for each
When the for each runs for 2 times, it will call subflow 2 times and each subflow will run on it's own.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2025 09:33 AM
move the logic of approval, task creation based on approval/rejection in subflow
Subflow will accept few inputs such as Task information to be created, User for approval
Then call this subflow within the for each
When the for each runs for 2 times, it will call subflow 2 times and each subflow will run on it's own.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2025 01:38 PM
This worked Thank you! I separated out the approvals/tasks into a subflow and it works now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2025 11:45 AM
please provide how you defined the input and out put