I have posted this in the Adobe Community also but have not had a reply so I thought I should hit my normal Go-To Community.
I have a Logic App that monitors incoming emails. Some have multiple PDF attachments that I want to merge and save to Dropbox. I have it working with the Encodian API but I want to switch it over to the Adobe API.
I then use the array as input for the Encodian API. When I try this with the Adobe API, I get an error, "bad value for parameter 'files'; invalid type"
. Doing some research I read somewhere that I should change the fileName line to "$content-type": "application/pdf"
This still returns the same error.
Even though the files were already PDF’s I thought maybe they still needed to be converted to Base64 so I tried that.
The Append array action generates this result:
[
{
"$content-type":"application/pdf",
"fileContent":"SlZCRVJ..."
},
{
"$content-type":"application/pdf",
"fileContent":"SlZCRVJ..."
}
]
The error again is: "bad value for parameter 'files'; invalid type".
The full code for the action is:
{
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['adobepdftools']['connectionId']"
}
},
"method": "post",
"body": {
"files": "@variables('FileToMerge')",
"outputFileName": "Temp.pdf"
},
"headers": {
"x-api-key": "PowerAutomate",
"x-region-value": "-ue1"
},
"path": "/operation/v1/combinePDF"
}
}
Thank you for any insight that can be provided!