wait for event in flow designer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2021 10:57 PM
Hi all,
We are now starting to use flow designer to create new stuff instead of workflow editor.
I have seen 2 things that were missing for me.
1. Scratch pas - I have seen this is now resolved in Quebec as flow variables have been introduced
2. wait for event action - I do not see anything similar, and the wait for condition action is not supported on the events table. so instead of doing events, the only way I see around it for now would be to use a do until action with wait for a duration of time and then lookup the record to see if what I wanted to wait for has happened. it would be something as follows:
1. do until
2. wait for duration of time - 1 hour
3. look up record - this will look up the record on which I'm looking for - here i could try and lookup an event record
4. until - what I wanted happens on the result of the look up
this can work of course but looks like this is wasting system resources and it requires 4 activities while a wait for condition would be far simpler.
Also, this will not continue as soon as the event is triggered but only after the next iteration of the "wait for a duration of time"
I can of course build an action that gets an event from the event registry as an input and does the loop, but this is just making it re-usable and does not really improve the way it will work.
I would be happy to hear what others are doing.
Alex
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2021 11:20 PM
Hi,
Thank you for the detailed information.
As of now I believe the only workaround which is there you already posted.
Let's wait for other folks to respond
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2021 11:17 AM
Hi Alex,
Until they add this to the flow designer, I guess you could use the action "call a workflow", and then call a workflow that basically only has the wait for event in it. Then once it is complete, in theory, your flow should then be able to continue, if you have ticked the "wait" box in flow designer.
Just came across your question, would need to test this out myself 😄
Best regards,
Sebastian Laursen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2021 09:06 AM
I just tested this out and it works great. I ran into this same issue and was thinking to try this or to use a Wait For Condition to check for a change to the record's "updated" date, but that's not an option.
Good old workflow... 🙂