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.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

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.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

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
Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,155)