cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AraSaber12
Level 8

Send attachment in 1 mail in stead of each one

Hi Guys,

 

I have a table in SQL with reportname and email. In Flow through a storedprocedure I send a mail to the recipients with the reports which is belongs to.

 

For example I have a user1 and he has to recieve a mail 3 reports in this case he gets 3 mails. But how can I achieve that he only get 1 mail with all the reports.Untitled.png

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Send attachment in 1 mail in stead of each one

Hi @AraSaber12 

 

You can do that by creating an array and collect all the content in that array and then pass it to the attachments. Please see the screenshot below:

ayys.PNG

Here, I have done that for the sharepoint part, you can replicate for the blob. First initialise an empty array variable at the top and then in the appen array variable use the file name with extesnion for the name and then binary(blob content) expression for the "ContentBytes". 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

1 REPLY 1
Dual Super User
Dual Super User

Re: Send attachment in 1 mail in stead of each one

Hi @AraSaber12 

 

You can do that by creating an array and collect all the content in that array and then pass it to the attachments. Please see the screenshot below:

ayys.PNG

Here, I have done that for the sharepoint part, you can replicate for the blob. First initialise an empty array variable at the top and then in the appen array variable use the file name with extesnion for the name and then binary(blob content) expression for the "ContentBytes". 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,875)