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
Super User
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
Super User
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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Users Online
Currently online: 103 members 3,973 guests
Recent signins:
Please welcome our newest community members: