cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

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
Highlighted
Dual Super User II
Dual Super User II

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

Highlighted
Community Support
Community Support

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
Highlighted
Dual Super User II
Dual Super User II

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

Highlighted
Community Support
Community Support

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

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Top Solution Authors
Users online (8,165)