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

View solution in original post

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 🙂

 

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.

View solution in original post

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

 

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
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
Users Online
Currently online: 325 members 5,587 guests
Please welcome our newest community members: