Flow Designer: Check for Email Address for 3 Consecutive Days

jmiskey
Kilo Sage

I am working on a Catalog Item and Flow, and am trying to figure out the best way to approach something in Flow Designer.  Once the item is submitted, it will go through some approvals.  Once the approvals are complete, it needs to send an external email.  However, it cannot do that until the requested for person has an email address (this form is typically being filled out for new members).

 

What we would like to do at this point of the Flow is check to see if the requested for person has an email address in their user record.  If they do, it can proceed with the next step of the flow (send the external email).  If not, we would like to wait 24 hours, then check again.  And repeat that "24 hours and check" 3 times.  If after the 3rd check, the requested for person still does not have an email address, we would like to assign a Task to a work team to investigate it.

 

The email and task part are no problem.  I am just not sure how to create a loop that checks for an email address 3 times (once every 24 hours), and exits at the appropriate point (when email exists, or 3 days are up - whichever comes first).

 

Does anyone have any suggestions on how to set this up in Flow Designer?

 

Thanks

4 REPLIES 4

Jon23
Mega Sage

Hi@jmiskey ,

Have you looked at doing a do while loop?  

In the loop, put a wait for 24hrs, then check if email populated.  If not, update a loop counter, and loop back.

End loop if loop counter >3 OR email populated.

Hello @jmiskey ,

 

Try similar to below this may useful.

 

Appanna_0-1713466078013.png

 

Appanna_1-1713466118871.png

Appanna_2-1713466201380.png

 

Write an inline script to increase the count_var.

 

Please Mark My Answer as Helpful and Accept as Solution, if you find this article helpful or resolves your issue.

jmiskey
Kilo Sage

Thanks for all the ideas.  We tried incorporating them with mixed results, but then we decided to go about this a different way.  Rather than jump through all these hoops, we are going to limit the Request Form to only allow them to choose "requested for" people who already have an email address.  By limiting it at that point, it makes all these other checks unnecessary.

Hello @jmiskey ,

 

Thanks for your reply. That's a good approach.