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...
Solved! Go to Solution.
Hi @EthanWang ,
One of mine is below - firstly the Flow. The second action is SharePoint Get file content
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.
Hi @EthanWang ,
One of mine is below - firstly the Flow. The second action is SharePoint Get file content
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.
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
Hi @EthanWang ,
You need to repeat the process for each file and add as separate attachments.
Hi @WarrenBelz
Cant i combine all the attachments into an array than use flow to attach the array as an attachment?
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.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
194 | |
68 | |
46 | |
41 | |
28 |
User | Count |
---|---|
253 | |
120 | |
86 | |
84 | |
84 |