we are working on a process that has to do a lot of Outlook interactions - download attachments, move mails around, etc. And we are trying different ways to do it. The first option was using the desktop app with regular “Get Outlook messages” activities, but that causes problems with syncing the changes across different machines, as we are using a shared mailbox.
Now, we are looking into the “Use Outlook 365” activity. It looks like it does not have a simple “Get messages” type of activity, where we would get a list of messages, but instead the “For each mail” activity should be used. This would cause quite a lot of changes in our process flow, as majority of it would end up inside the loop, and that is not perfect. I was wondering, is there a way to get the list of messages that the loop iterates over? I was trying the debug, and experimenting with the Immediate window, but could not get the list, just the current message of the iteration.
Is this even possible? any other suggestions?
The regular Office365 activities do not work for us because the Azure AD app needs admin privilege, and that is against internal policies.
Thank you for the response. I understand that “Get Outlook mail messages” gets the list as an output, but the issue is that it uses desktop app, which is not reliable. I am interested specifically about the outputs of “For each mail” activity.
Exchange is an interesting option, it seems to work with a registered Azure AD app and a one-time consent grant.
Does anyone know if the consent granted here, or in O365 Scope, with the “Interactive” setting, is ever dropped?