Using Get files (props only) to get some files in doclib, then getting contents. Want to create array of objects for attachments in email.
Send Email V2 works, but attachments are corrupt. An array of these object is being returned from a flow. I'm using JSON on the returned string in the Attachments propert.
{
"Name": @{item()?['{FilenameWithExtension}']},
"ContentBytes": @{body('Get_file_content')?['$content']}
}
base64-ing the content didn't help. Solved this months ago but lost that code (and apparently didn't learn anything).