Hi,
I used a template to save attachments when an e-mail arrives to an specific folder in OneDrive, so far that works, but files are corrupted, doesn't matter the type (pdf, excel file, jpg, etc.).
Here is the code.
{
"type": "OpenApiConnection",
"inputs": {
"parameters": {
"folderPath": "/",
"name": "@items('Apply_to_each_attachment_from_specific_user')?['name']",
"body": "@items('Apply_to_each_attachment_from_specific_user')?['contentBytes']"
},
"host": {
"apiId": "/providers/Microsoft.PowerApps/apis/shared_onedriveforbusiness",
"connection": "shared_onedriveforbusiness",
"operationId": "CreateFile"
}
},
"runtimeConfiguration": {
"contentTransfer": {
"transferMode": "Chunked"
}
},
"metadata": {
"operationMetadataId": "3c78f01d-b520-47ef-872b-acad8fdcccb6"
}
}
Can somebody help me, please.