Flow designer - Wait for task to be updated

Brad Warman
Giga Sage

I am using flow designer and trying to use a wait condition based on the previous task being updated (using the sys_updated_on field) but cannot seem to get it to work. The wait condition never progresses, even when the task has been updated. I've tried using a script condition of sys_update_on.changes() as well as updated is after created, but both don't seem to progress beyond the wait condition. Does anyone know how to get around this?

Cheers,

Brad

1 ACCEPTED SOLUTION

Mahendra RC
Mega Sage

Hello Brad,

If you want a condition where you need to make the flow to wait till the time next update happens on the record then I believe it will be difficult to apply the condition using the Updated field as I don't see changes operator for any field in Wait for condition action.

So I would suggest to use the Updates (sys_mod_count) field you can apply the condition to check the updates count is increased by 1. To achieve this you can create a flow variable Update Count and check the current Updates field value on your table and then increment it by 1 and return to flow variable as shown below:

find_real_file.png

Now in your wait for condition you can check for Updates field = to Update count as shown below:

find_real_file.png

So your flow will wait untill next update happens on your record. You can apply the similar logic for Updated field like you can get the current updated field value and add 10 seconds to that time and store this Value in Flow variable (Updated Time). Then in your Wait for condition action you can apply the condition Updated is at or after Updated Time. But with date field it will be little complex because in very rare case if may happen that the record is updated within 10 seconds and in this case Wait for condition will be passed. so will need to check on how many seconds you need to add to current, which can be little tricky.

Please mark this as helpful/correct, if it answer your question.

Thanks

View solution in original post

3 REPLIES 3

Maik Skoddow
Tera Patron
Tera Patron

Please share your current approach as detailed as possible with complete screenshots. Any cut screenshots are not helpful.

Maik

Mahendra RC
Mega Sage

Hello Brad,

If you want a condition where you need to make the flow to wait till the time next update happens on the record then I believe it will be difficult to apply the condition using the Updated field as I don't see changes operator for any field in Wait for condition action.

So I would suggest to use the Updates (sys_mod_count) field you can apply the condition to check the updates count is increased by 1. To achieve this you can create a flow variable Update Count and check the current Updates field value on your table and then increment it by 1 and return to flow variable as shown below:

find_real_file.png

Now in your wait for condition you can check for Updates field = to Update count as shown below:

find_real_file.png

So your flow will wait untill next update happens on your record. You can apply the similar logic for Updated field like you can get the current updated field value and add 10 seconds to that time and store this Value in Flow variable (Updated Time). Then in your Wait for condition action you can apply the condition Updated is at or after Updated Time. But with date field it will be little complex because in very rare case if may happen that the record is updated within 10 seconds and in this case Wait for condition will be passed. so will need to check on how many seconds you need to add to current, which can be little tricky.

Please mark this as helpful/correct, if it answer your question.

Thanks

Thanks Mahendra. I've set the wait condition to 'updates greater than or is 1' and it works perfectly.