How to script in 'Wait for Condition' action in Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2024 02:08 AM
I have a requirement where I am working on Order Guide, I have to keep the remaining ritms to wait, until one of the RITM's first 2 tasks are closed complete. I used the below scripting for that within Wait for Condition action. But its not working, action is executing before meeting the conditions. Am I doing anything Wrong here?
Below is the code used:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2024 07:02 AM - edited ‎07-09-2024 07:02 AM
What is the reasoning behind scripting this? You can do this completely OOTB without scripting. You can look up both tasks that are created, then use the Wait for Condition, and just use configuration to wait for State is Closed Complete (or your desired state), against both of them so that when one or the other closes it will move forward
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2024 07:11 AM
As Mentioned by @Zach Koch Why the need of writing script for the scenario that you have mentioned and Below is the example that you can follow the procedure.
There is an wait option that I have mentioned in the image below You can use that.
Thanks and Regards
Sai Venkatesh