cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

PDF From SQL SP Output

I am trying to build a flow that runs a stored procedure "execute stored procedure (V2)" then converts the output of this into a PDF that can then be emailed.  any ideas ?

3 REPLIES 3
Community Support
Community Support

 

Hi @Ang16 ,

 

You can refer to the method in this blog to get the data and configure Create HTML table action after Select.

https://powerapps.microsoft.com/en-us/blog/return-an-array-from-a-sql-stored-procedure-to-powerapps-...

Then use the Create file action to create a doc file with the output of the HTML table as the file content.

Then use the Convert file action to convert the file created above into a PDF file.

Finally, you can configure the Send email action to configure the file name and file content output from the Convert file action in the attachment name and attachment content.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I am not wanting to run through Powerapps ? So far I have

> Recurrence

> Execute stored procedure (V2)

> Create HTML table

 

from here i cannot workout how to 'Create file action' to create a doc file for a readable output

 

Hi @Ang16 ,

 

You could try this configuration:

36.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (7,499)