Getting email PDF attachment from email in ApplyToEach loop to pass to AI Model Extract info from docs, work smoothly using Dynamic Content values using expression.
items('Apply_to_each')?['contentBytes']
I'm trying to pass file content to AI model inside Do Until loop and I tried all possibilities of expression to get file content but it doesn't work though I can able to get attachment file name, size etc.
Following expressions I tried and it didn't work.
items('ProcessEmails')?['attachments'][variables('counter')]?['contentBytes']
Following expression works for ContentType
items('ProcessEmails')?['attachments'][variables('counter')]?['contentType']