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

Notifications

Announcements

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
    153,059 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
    153,059 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
    153,059 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard