Hi everyone,
I try to get all files from sharepoint (currently 2 files in the library), and send them within multiple attachments.
Here is my process:
get files properties
get file content with identifier from get files properties (so in a for each)
add a compose just after the get file content with the following:
{
"Name": "@{items('For_each')?['{FilenameWithExtension}']}",
"ContentBytes": "@{body('Get_file_content')}"
}
after the loop, add another compose to store the previous one
send email (v2)
after running the flow, everything seems ok, but the files within the email are not readable.
I also tried with: "ContentBytes": "@{body('Get_file_content')?['$content'}" but i still receive the same issue.
If anyone get the same issue and solved it, it's welcome.
Thanks to all.