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

Create unique files with flow

Hi all,

 

In Power Automate (Flows) I want to create a file (.docx) after a form has been created. So far it goes well. But when a form is filled in for the second time and therefore a doucment is created, This one is overwrite the previous document. A unique number such as the time (14:03:44) is not accepted.

 

What is the best solution for this?

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Dual Super User
Dual Super User

Re: Create unique files with flow

The key here is to give the document a different File Name each time you create it.  You could translate the current time into ticks() and append that to the default File Name to create a unique file name.  



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Community Support Team
Community Support Team

Re: Create unique files with flow

Hi @Watson

 

As @Pstork1  said, you should create the document with unique file name.

 

You could take a try with the expression rand() as below:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#r...

 

 

Best regards,

Alice       

Community Support Team _ Alice Zhang
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
Dual Super User
Dual Super User

Re: Create unique files with flow

The key here is to give the document a different File Name each time you create it.  You could translate the current time into ticks() and append that to the default File Name to create a unique file name.  



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Community Support Team
Community Support Team

Re: Create unique files with flow

Hi @Watson

 

As @Pstork1  said, you should create the document with unique file name.

 

You could take a try with the expression rand() as below:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#r...

 

 

Best regards,

Alice       

Community Support Team _ Alice Zhang
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
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

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

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 (9,188)