Dear All,
I was going through the below link to attach a list item's attachment to an email but wasn't able to get Append to array variable to work
https://www.techmeet360.com/blog/how-to-send-an-email-attachment-using-microsoft-flow/
This is what i have used in the expression
Solved! Go to Solution.
Hi @kannan1 ,
Actually, after my test, I found the problem is that you only obtained the '$content' from Attachment content, however, '$content-type' is also required.
Please just add 'Attachment Content' from dynamic content directly to the ContentBytes value as follows.
found the answer here https://powerusers.microsoft.com/t5/Building-Flows/Email-Attachments-in-Flow/m-p/194363#M20085
{ "Name": @{items('Apply_To_Each')?['DisplayName']}, "ContentBytes": @{body('Get_attachment_content')?['$content']} }
For some reason the above didn't work
I did all as said in the below link and the flow runs without any error. but the attachment in the email throws an error. "looks like we dont support this file format" for .jpg file and similar for word and other file formats.
Hi @kannan1 ,
Actually, after my test, I found the problem is that you only obtained the '$content' from Attachment content, however, '$content-type' is also required.
Please just add 'Attachment Content' from dynamic content directly to the ContentBytes value as follows.
Thank you very much, I was able to get it to work just by adding attachment content as you suggested.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.