- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 04:42 AM
We are converting our workflows to flow designer but I am struggling to replicate this scripted wait for condition which waits for an approval to be rejected or all approvals to be approved
To provide some context there are numerous concurrent and sequential approvals - to provide visibility of subsequent approvals we first lookup the required approvers and set these as not yet requested then loop through and set those with iterator 1 as requested, then iterator 2 etc.
Can anyone advise how best to replicate this in Flow Designer?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 03:21 AM
I solved this with a business rule to set open approvals as no longer required if an approval changes to rejected, then the flow continues as required
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 06:12 AM
Follow below steps:
1. lookup on "sysapproval_approver" table. and map required fields like sysid.
2. from 3 dots in right create flow variable - count.
3. set flow variables - count = 0 in flow.
4. Add if condition - if lookup reference state = rejected.
5. update record of the whatever table you need for "workflow.scratchpad.appOrRej = 'rejected';" for this. and increase the count.
6. else conditions - update records and increase count.
If my answer helps you please mark as accepted/helpful by adding thumb in bottom of my post.
Thank You!!
Thank you!!
Dnyaneshwaree Satpute
Tera Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2024 02:09 AM
Thanks for the reply. I'm struggling with the Wait for condition as this requires a single record as an input whereas I want to wait for all records to be approved (state not requested) before continuing unless a record is rejected - in which case end flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2024 02:21 AM
Use "For each" activity for required table and conditions to check all the required records then end the flow.
Thank you!!
Dnyaneshwaree Satpute
Tera Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 03:21 AM
I solved this with a business rule to set open approvals as no longer required if an approval changes to rejected, then the flow continues as required