Wait for email in office 365

Hi,
I am in a automation where I go to web site and download report (this part is done) which comes through email on my office 365 mail.I need to wait for that email.then resume other part . my question is which approach should i use?
-Is there there any activity which i can use?
-or go for loop to get email.?
-can i use integration service without publishing to orchestrater ?(project is not going to publish on orchestrater)
-i come to know about this activity- Wait for Email Received and Resume. but can not find this in activity panal. which packeage to download? Activities - Wait for Email Received and Resume

please help

Hi @Hemant_Deshmukh,
You can maybe use a retry scope(the issue is you’ll have to set the number of time you have to retry), that will check your outlook mails (Filter it by the particular subject you require), also set the following properties,
image
After getting the List of MailMessages, check if it is empty, if True throw and exception(This will cause the retry scope to repeat the sequence again) else the particular mail has been received.
If needed put a delay before the Get Outlook Messages.
**Note: Alternatively, you can use an infinite a loop as well **

Also the Wait for Email Received and Resume is a preview that’s why it isn’t available.

Hope this helps! Thank you :grinning:

using retry scope with retrying like 3 times and put in time interval depends on the time reports takes to be sent to the mail , if you know max time would be like 30 minutes you can put 10 minutes of 3 times retry, then the process should complete otherwise throw business rule exception and send mail notification that the report is not delivered, another better approach is to re submit the report if is not delivered to mail and retry to get it.

you can use for each loop of enumerable.range(1,3) and to retry get mail 3 times and after not found it use delay activity of 10 minutes before loop again and once the mail found break the loop.

Integration service is to trigger the process from orchestrator so I do not think you can use it in this case.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.