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 III
Super User III

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (48,717)