cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

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
Highlighted
Community Support
Community Support

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.

View solution in original post

6 REPLIES 6
Highlighted
New Member

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

I was able to get it working using a variable 🙂

 

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.

 

 

Highlighted
Community Support
Community Support

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.

View solution in original post

Highlighted
New Member

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. 🙂

 

Highlighted
Helper III
Helper III

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.

Highlighted
Regular Visitor

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

Frequent Visitor

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

Hi BrianH,

 

Would you be willing to share the details behind 

 

1. set Recurrence.

2. Initialize variable

3. execute sproc

4 appy each

  4b. Append column from result set to variable.

5. send email.

 

Specifically in step 4 and 4b how are you referencing the returned sproc table.     Are you using the 'Body' or the 'ResultSets' objects?   What syntax are you using to get down to the   table.column   level?

 

Any help you could give would be greatly appreciated. 

 

 

 

 

 

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Top Solution Authors
Top Kudoed Authors
Users online (7,013)