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

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
Regular Visitor

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

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 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 (6,646)