cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ang16
Level: Power Up

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

Re: PDF From SQL SP Output

 

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.
Ang16
Level: Power Up

Re: PDF From SQL SP Output

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

Community Support Team
Community Support Team

Re: PDF From SQL SP 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
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!

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 Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (3,754)