Hi,
I'm currently trying to create a flow that is triggered when a new email is received and for each of the attachments creates an HTTP requests which posts the content to a backend server for further processing of the file.
I tried setting the file as content body and also as a request parameter' file. In all cases, I'm receiving that the file is Null at the backend.
I've also tried posting the array of attachments and I get a Json like this:
[{
@odata.type = #Microsoft.OutlookServices.FileAttachment,
Id = AQMkADNmNWYwMWViLT...,
Name = myPhoto.jpg,
ContentType = image / jpeg,
Size = 19092,
ContentBytes = null
}, {
@odata.type = #Microsoft.OutlookServices.FileAttachment,
Id = AQMkADNmNWYwMWViLTcx... ,
Name = My PDF.pdf,
ContentType = application / pdf,
Size = 44972,
ContentBytes = null
}]The problem I have is that contentBytes is always null. If I try to loop trough each of the attachments and get the content, I post a null value in the request body.
What's the proper way to post an email attachment to an HTTP request?