cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Watson
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
Pstork1
Dual Super User
Dual Super User

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

v-alzhan-msft
Community Support
Community Support

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
Pstork1
Dual Super User
Dual Super User

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.
v-alzhan-msft
Community Support
Community Support

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.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,013)