Microsoft Flow to Store Emails on SharePoint from Shared Mailbox
The client's requirement was to use a Shared Mailbox which will have multiple alias and according to the alias determine a library on SharePoint and store the email in that library. Now, from flow's action "when a new email arrives in a shared mailbox" you can't determine the email sent to which alias. This is where use of exchange transport rules came to my mind. So, what I did, I created an exchange transport rule for every alias, which will prefix name of the alias to the subject line of the email and then while processing the email in flow I, through some string operations got the name of alias out of the subject line.
In the image below, the email was originally sent to alias HRJobs@xyz.com, but when it got to Flow you can see that in the To address, the value is mycompanyjobs@xyz.com, which is address of the Shared mailbox. In the subject line you would see how HRJobs is prefixed.
Well, this is it until next time!
Thanks for reading.
In the image below, the email was originally sent to alias HRJobs@xyz.com, but when it got to Flow you can see that in the To address, the value is mycompanyjobs@xyz.com, which is address of the Shared mailbox. In the subject line you would see how HRJobs is prefixed.
Thanks for reading.
Comments
Post a Comment