Hi Community,
Hoping someone out there can provide some insight.
I am trying to pass a GET HTTP request in Microsoft Power Automate, which returns the following JSON body as shown below:
{
“$content-type”:“binary/octet-stream”,
“$content”:“String Goes Here”
}
The file in question is a .pdf and I would like to then send a POST HTTP request to Trello, which will upload the file as an attachment.
I have successfully performed the request using Postman but trying to translate it back to Power Automate has been challenging.
My POST request is structured in the following way:
“headers”: {
“Authorization”: “@{variables(‘trelloAuthorizationToken’)}”,
“Content-Type”: “multipart/form-data; boundary=----WebKitFormBoundaryTest”,
“Accept”: “application/json”
},
“body”: “@outputs(‘OUTPUT’)”
}
Where @outputs(‘OUTPUT’) equals
------WebKitFormBoundaryTest
Content-Disposition: form-data; name=“file”; filename=“ThisIsATest.pdf”
Content-Type: application/pdf
@{body(‘Perform_get_request’)?[‘$content’]}
------WebKitFormBoundaryTest
Content-Disposition: form-data; name=“name”
ThisIsATest.pdf
------WebKitFormBoundaryTest
Content-Disposition: form-data; name=“mimeType”
application/pdf
------WebKitFormBoundaryTest–
Any advice would be greatly appreciated