cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BrianH
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
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
BrianH
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.

 

 

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

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

 

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

msyed6
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

apj2
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

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,074)