Processing Email using Microsoft Flow + Webhooks
One of the application development team had a requirement to read emails sent to a specific email address so that they can parse the same and act on them. We use Office365 and app team wanted to open up IMAP ports and the Security team and Email Admin teams had said "NO".
I didn't want to travel back in time.
The easier way would be to use Microsoft Flow with HTTP.
We use TYK API Gateway on our production network which is accessible on the internet and it is being used, but you can also any of your internet accessible endpoints like the app by itself or AWS API Gateway, etc.
Also, keep in mind the licensing requirements imposed by Microsoft for using Flow. From what I read, one should be able to do this from a shared mailbox as well.
Here are the high-level steps that I recommended the app team
1) Login into the Flow.
2) Create a new Flow ( Automated Flow from Blank )
3) Provide a name for the flow and select when a new email arrives as the trigger.
I didn't want to travel back in time.
The easier way would be to use Microsoft Flow with HTTP.
We use TYK API Gateway on our production network which is accessible on the internet and it is being used, but you can also any of your internet accessible endpoints like the app by itself or AWS API Gateway, etc.
Also, keep in mind the licensing requirements imposed by Microsoft for using Flow. From what I read, one should be able to do this from a shared mailbox as well.
Here are the high-level steps that I recommended the app team
1) Login into the Flow.
2) Create a new Flow ( Automated Flow from Blank )
3) Provide a name for the flow and select when a new email arrives as the trigger.
4) Expand and update advanced options to specify conditions to be met for this flow to be triggered.
5) Add new step and search for http and select the one reads HTTP with Premium label
6) Specify your API Method (typically Post), API URI endpoint, Authentication Methods (highly recommended), make the best use of Dynamic Content and Expressions
7) Save the flow end test emails and see the upstream app receives the web call. Typically user agent is something like azure-logic-apps/1.0 (workflow 0123456789abcdef0123456789abcdef; version 0123456789abcdef) microsoft-flow/1.0




Comments