cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BrianH
Level: Powered On

Return all results from a Stored Procedure in one email body

I know how to execute a sproc and create an email for each row. I want to know how I can get all the rows into one email.

 

Thanks

Brian

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Return all results from a Stored Procedure in one email body

Hi @BrianH,

 

Could you please share a screenshot of your flow's configuration?

 

I think your thought is available, in addition, you could also consider take a try to use the "Create HTML table" action to achieve your needs.

 

Please check and see if the following thread would help you in understanding the usage of the "Create HTML table" action:

https://powerusers.microsoft.com/t5/General-Flow-Discussion/Conditional-text/m-p/85601/highlight/tru...

 

More details about the "Create HTML table" action, please check the following article:

https://flow.microsoft.com/en-us/blog/html-tables-csvs-computer-vision/

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
5 REPLIES 5
BrianH
Level: Powered On

Re: Return all results from a Stored Procedure in one email body

I was able to get it working using a variable Smiley Happy

 

Not sure if there is a better way though.

 

1. set Recurrence.

2. Initialize variable

3. execute sproc

4 appy each

  4b. Append column from result set to variable.

5. send email.

 

 

Community Support Team
Community Support Team

Re: Return all results from a Stored Procedure in one email body

Hi @BrianH,

 

Could you please share a screenshot of your flow's configuration?

 

I think your thought is available, in addition, you could also consider take a try to use the "Create HTML table" action to achieve your needs.

 

Please check and see if the following thread would help you in understanding the usage of the "Create HTML table" action:

https://powerusers.microsoft.com/t5/General-Flow-Discussion/Conditional-text/m-p/85601/highlight/tru...

 

More details about the "Create HTML table" action, please check the following article:

https://flow.microsoft.com/en-us/blog/html-tables-csvs-computer-vision/

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BrianH
Level: Powered On

Re: Return all results from a Stored Procedure in one email body

I was going to share a screenshot but I dont see anyway to add a picture or attachment. Though I know there must be a way since others are doing it.

 

Thanks for the links.

 

Look at that, there is a "Create HTML Table" action. I had no idea. Still learning. Smiley Happy

 

kevinsray
Level: Powered On

Re: Return all results from a Stored Procedure in one email body

I am extremely interested to see how you got the results of your SP to the mail.
I am trying to do the same thing but am also still learning Flow.

Any hints, especially about step 4/4b would be appreciated.

msyed6
Level: Powered On

BraiRe: Return all results from a Stored Procedure in one email body

Hi Brain,

 

Can you let me know the Stored Procedure to  get each row from SQL whenever it is submitted from front end PowerApps Submit form. I have two columns ID, firstname. I want to each row whenever it is submitted from Powerapps submit form

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us 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!

Top Kudoed Authors
Users Online
Currently online: 184 members 4,775 guests
Please welcome our newest community members: