cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Ang16
Level: Powered On

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: Powered On

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

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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
Top Kudoed Authors
Users online (9,992)