cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Create unique PDF file from HTML.Text so that I / users do not delete other PDF files downloaded

Hi all,

 

I have been following the amazing tutorial that Shane Young has created, in which he makes a PDF from data in a PowerApp.

 

https://www.youtube.com/watch?v=bfXV_GXc_JM

 

However, in that tutorial it seems that the PDF-file from the data gets downloaded into OneDrive with a preset name from Microsoft Flow.

 

Is there any way to change that so that it will create a unique name set by the user so that we do not end up in a situation where formerly downloaded PDF files get deleted due to overwriting of a new PDF?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Anonymous ,

Could you please share a screenshot about your flow's configuration?

 

Based on the needs that you mentioned, I have made a test on my side, please consider take a try with the following workaround:

1.JPG

Within the "Create file 2" action, add the following expression in the File Name field:

formatDateTime(utcNow(), 'yyyyMMddHHmmss')

along with '-CanvasApp.pdf'. Then the generated PDF file would have unique file name.

 

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

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

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @Anonymous ,

Use “Ask in PowerApps” for the name of the file.  I can give you some examples if you want to do this.

 

 

Please click and accept as Solution if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.

v-xida-msft
Community Support
Community Support

Hi @Anonymous ,

Could you please share a screenshot about your flow's configuration?

 

Based on the needs that you mentioned, I have made a test on my side, please consider take a try with the following workaround:

1.JPG

Within the "Create file 2" action, add the following expression in the File Name field:

formatDateTime(utcNow(), 'yyyyMMddHHmmss')

along with '-CanvasApp.pdf'. Then the generated PDF file would have unique file name.

 

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

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

View solution in original post

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