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
v-bacao-msft
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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,180)