web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Appending Sharepoint L...
Power Automate
Answered

Appending Sharepoint List Attachments to an array

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm trying to append multiple Sharepoint List attachments to an array so I can send them all in one email. I followed this tutorial. For some reason, the "ContentBytes" part of the array is null for both attachments so the send email action fails. Any suggestions? Thanks

snip1.PNG

snip2.PNG

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @Anonymous 

    Can you expand your Get Attachment Content action and post a screen shot?

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @ScottShearer Here you go. Thanks for your help.

    snip3.PNG

  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Anonymous ,

     

    The file identifier displayed in the body of the Get attachment content action seems a bit strange.

    In general, the end should be the same as the file name, can you share the specific configuration of each action?

     

    I did a test on my side, flow can run normally, please check my configuration:

    64.PNG

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @v-bacao-msft the file identifier in the Get Attachment Contents was wrong. I switched it to the identifier generated from the Get Attachments action and used 

    body('Get_attachment_contents').$content

     for the expression value for ContentBytes in the Append Array action and it worked.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard