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

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (5,288)