Invoking a Web API when a new mail arrives

Copper Contributor

Hi,

 

I have a requirement where a Web API has to be invoked when a new email arrives in an O365 mailbox.

The invocation request to the Web API should have all the information of the new email:

1. Sender

2. Receiver

3. Subject

4. Attachment

5. Body

I have hosted the Web API in Azure.

 

Kindly help.

 

Regards, Saurabh

2 Replies
This is a suitable scenario for Flow...you would need to check if you can invoke your WebAPI from a Flow that will fire when a new e-mail arrives to an Office 365 inbox
There are a number of Flow templates for email activity at https://emea.flow.microsoft.com/en-us/ Try there, sure to be one hat fits the bill or, with a tweak, will do what you want.