Skip to main content
Community site session details

Community site session details

Session Id : 6T3gLqUn2wCP6ogzymSIMB
Power Automate - Building Flows
Answered

Attaching list item attachment to email

Like (0) ShareShare
ReportReport
Posted on 23 Nov 2020 05:50:38 by 51

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/

 

kannan1_0-1606110368700.png

This is what i have used in the expression 

body('GetContent').$content
 
it gives me "Enter a valid json" error
  • kannan1 Profile Picture
    51 on 25 Nov 2020 at 07:06:42
    Re: Attaching list item attachment to email

    Thank you very much, I was able to get it to work just by adding attachment content as you suggested.

  • Verified answer
    v-siky-msft Profile Picture
    on 25 Nov 2020 at 05:49:30
    Re: Attaching list item attachment to email

    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.

    Snipaste_2020-11-25_13-16-51.pngSnipaste_2020-11-25_13-16-23.pngSnipaste_2020-11-25_13-19-23.png
     
    Hope this helps.
    Sik
  • kannan1 Profile Picture
    51 on 24 Nov 2020 at 10:31:32
    Re: Attaching list item attachment to email

    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.

     

  • kannan1 Profile Picture
    51 on 23 Nov 2020 at 06:17:21
    Re: Attaching list item attachment to email

    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']}
    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1