I have to pass File Name and File content to Azure function when new file is added or modified in SFTP folder. I am able to pass them but File content is getting passed as complex type json as follows:
{
"fileContent": {
"$content-type": "application/octet-stream",
"$content": "QWxvZnQgQidoYW0gU29obyBTcSAgICAg=="
},
"fileName": "testFile"
}
I just need to pass $content to Azure Function. My current code is as follows in logic app
"body": {
"fileContent": "@triggerBody()",
"fileName": "@triggerOutputs()['headers']['x-ms-file-name']"
},
How could I pass only content form FileContent to Azure function?