Search code examples
emailazure-functionsemail-attachmentsazure-logic-apps

Retrieve Mail-Attachments in LogicApp for Azure Function call


I have a use case in which I have a Logic App which triggers as soon a Mail is sent to a particular email address.

This email contains multiple attachments. The Logic App then needs to call an Azure Function and pass the Body of the mail and the attachements to the Azure Function.

Actually I am struggling with getting the email attachements in a way (Array?) which allows me to pass them to the Azure Function for further processing.

Does anybody have some advice for me? I'm not very familiar with Logic Apps, so any help is highly appreciated.


Solution

  • You can directly use HTTP requests to send attachment, The metadata used in the example can be obtained directly in Add dynamic content.

    enter image description here

    enter image description here

    You can refer to Post Multipart/Form-data using Azure Logic Apps.

    ==================update===========================

    enter image description here

    enter image description here