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 / Email selected attachm...
Power Apps
Answered

Email selected attachments from SharePoint library files by powerapps

(0) ShareShare
ReportReport
Posted on by

Hello All,

Here is the scenario -- I stored PDF files in share point library named by specific name.  For my users, they can view the selected PDF file(using flow) in PA and then request emailing this file to them.

 

Here my problem is the last step -- How to email the selected file to the user with PA?

 

Any advise...

 

Many thanks,
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,926 Most Valuable Professional on at

    Hi @EthanWang ,

    One of mine is below - firstly the Flow. The second action is SharePoint Get file content

    PDFEmail.png

    then the Run Parameters - the Items of the Gallery is simply the SharePoint Library (filtered as needed) and I have an Email icon in the gallery.

    EmailPDF.Run(
     stSite, //The SharePoint Site address
     ThisItem.Identifier, //The Identifier from the Library data (standard field)
     User().Email, //User's email addesss
     "Attached file - " & ThisItem.DocName, //DocName is a field populated when doc filed
     "Attached is the " & ThisItem.DocName & " as requested",
     ThisItem.Name //The name that goes on the email attachment
    );
    Notify(
     "A copy of " & ThisItem.DocName & " has been emailed to " & User().Email & " - check your inbox",
     NotificationType.Success
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • EthanWang Profile Picture
    on at

    Hi @WarrenBelz 

    Much thanks for your suggestion, it works nicely.

     

    But now i have another question is if i want to email multiple attachments from SP library which i collected in powerapps, how to put all these attachments into emails?

     

    Thanks

     

  • WarrenBelz Profile Picture
    154,926 Most Valuable Professional on at

    Hi @EthanWang ,

    You need to repeat the process for each file and add as separate attachments.

  • EthanWang Profile Picture
    on at

    Hi @WarrenBelz 

    Cant i combine all the attachments into an array than use flow to attach the array as an attachment?

  • WarrenBelz Profile Picture
    154,926 Most Valuable Professional on at

    Hi @EthanWang ,

    If you are coming from an Image collection or attachments, the two videos from Shane Young will guide you on this.

    However you are getting files from a Library and need to construct these as an array and then get the Outlook connector to accept them. It is not something I have attempted (though lack of need). I have up to three attachments on a number of apps and simply grab and attach them singly.

     

  • pchettri Profile Picture
    39 on at

    Repeat the process, how about the emails ? will it be sent twice ? even im stuck sending mutiple files from sharepoint library, please suggest.

  • pchettri Profile Picture
    39 on at

    Hi there, did you manage to send mutiple attachments from the sharepoint library in one email ? if yes, can you please guide me the steps.

     

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard