I am trying to identify a method to use flow to send the attachment of an email via HTTP Post to a custom API. This API accepts multipart form data with file attachments and works when testing via PostMan. However, when trying to craft together the Flow steps I am unable to emulate the request.
Is there any way to do this type of request via Flow and a custom API?
My Setup
Step 1) When an email is flagged.
Step 2) For each attachment:
A) HTTP
Method: POST
URL: Custom API URL
Header: { "Content-Type": "application/x-www-form-urlencoded" }
Body: [attachments]
Authentication: None
When the API recieves the request, it appears to be the encoded file but not in a multipart form request. I have full control over how the API handles the request data so could go about this a different way, but I'm completely stuck with figuring out how the Body field is supposed to behave with an attachment.