I have developed a bot which needs to read/move mail items from a Public Folder in Outlook. I am using the Get Exchange Mail activity because I need to also get attachments for all.
It works OK using a dummy folder structure I created in Outlook in my personal account area,but I have no idea how to configure it to look at the Public Folder path.
Eg.
\user@domain.com\Inbox\Network\Network-Automotive - Works Fine.
\Public Folders - user@domain.com\All Public Folders\Network\Network-Automotive - Can’t get it to read this folder instead
I have tried various things, often getting error messages such as SMTP inbox not available for this account or folder does not exist, or in one case I used the above full path and it was actually just reading my \user@domain.com\ area instead for some reason.
How do I configure the Get Exchange Mail activity so that the MailFolder is looking at a Public Folder path?
Has this issue ever been solved with Exchange mail activities? It works for us with Outlook mail activities, but it would be more efficient for us to realize with exchange activities.
@Jon_G@kc-x Indeed, Get Exchange Mail Messages activity does not work with public folders.
I’m curious if you are interested to retrieve only email items or you want to process posts items as well? Currently Get Exchange Mail Messages activity does not retrieve posts items (for 21.4 it will retrieve emails, calendar invites, and non-delivery reports (NDR) items).
We will do a fix for 21.4 to be able to return the emails from a public folder.
It will have some limitations:
If there are Posts items in your public folder, you need to define a filter expression in Get Exchange Mail Messages in order to skip such items and return only emails. This means FilterExpression := “kind:emails”.
To retrieve the emails from a public folder, the value of MailFolder field should be exactly as the name of the public folder that is displayed in Favorites. If there is a personal folder in the mailbox with the same name as a public folder, the activity will return the emails from the personal folder. In such case, in order to get the emails from the public folders, rename the personal folder.
If you are interested, I can send you an alpha version to test. Send me a private message.