I am building a bot that gets emailed a sign in link and then uses that to get into the site. Th email can take as long as 4 minutes to send but typically sends in under a minute. What is the best approach to activating the site without having to put in a delay for 4 minutes before checking the email ? Is there any strategy that someone could recommend ?
The Retry Scope
is a good practice where you can define the retry mechanism for checking the inbox. You can set the condition to check for an email and retry until it is found. This way, it avoids the necessity of a long wait time.
if you want to break the flow into two then best approach would be to use email triggers from integration services which trigger the bot immediately an email is received
if not your options are while loop with get mail inside and check if you have an email or retry scope with get email and check any email…I would say while loop is more better as retry scope leaves a error comment which is not needed every time
cheers
There are some new activities that allow you to keep all the logic in one workflow: ex: Activities - Wait for Email Received and Resume