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 Apps / Sending multiple attac...
Power Apps
Answered

Sending multiple attachments from a Sharepoint LIst

(0) ShareShare
ReportReport
Posted on by 287

I have watched Shane and Raza's videos and I am missing something.  I am simply trying to build a table of attachements in my Canvas App from a sharepoint list so that I can include the table in the Outlook sendemail function.  Here is my code:

astrontelstar_0-1696768078662.png

 

I only have 1 attachment per record, and the autosense shows .DisplayName, but you can see from the red squigly it doesn't recognize it when referenced like this.
Help!! 

 

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @astrontelstar,

    EDIT:

    If you want to collect SP List attachments into a collection using theCollect function, I have made a test on my side, I am afraid that there is no way to achieve your needs within PowerApps currently.

     

    Currently, we could only access the SP List item attachments within the Attachments control of a Edit form. 

    That's why you have this error like the name is not recgonized.

     

  • Verified answer
    astrontelstar Profile Picture
    287 on at

    I paid someone on Fiverr to solve it for me.  Turns out the solution was just to build the collection in a gallery showing the files to choose from and then send THAT collection to the sendemail component.

    Collect(CollectedAttachments,
    {Name:First(ThisItem.Attachments).DisplayName,ContentBytes:First(ThisItem.Attachments).Value})

     

    Office365Outlook.SendEmailV2(
    to_input.Text, // To address
    First(Gallery1.Selected.Attachments).DisplayName, // Subject of the email
    Body_input.Text, // Body of the email
    {
    From: from_input.Text, // From address
    IsHtml:true,
    Attachments: CollectedAttachments
    }
    )

     

     

  • astrontelstar Profile Picture
    287 on at

    I did want to say Thank you for taking the time to look at my problem.  I really appreciate it!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard