cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Nat
New Member

Create New File with date times stamp

Hi i am sorry for posting this i am sure the answer is simple but i just cant figure it out.

I have a flow that 

When a File is created it Starts an approval. if the approval is approved it creates a file in sharepoint library. I have just noticed if the file names are the same the file overwrites the original file, so i need to add a datetime to the filename. 

thanks in advance

Nat

Automation Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Create New File with date times stamp

Hi @Nat,

 

When you input function, you should add the "@" tag before the expression or enter them in the Expression on the right box, for example:Annotation 2020-03-31 144316.png

 

Best Regards,
Community Support Team _ Lin Tu
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

4 REPLIES 4
Super User
Super User

Re: Create New File with date times stamp

Hi @Nat 

You can use a concat function in Filename fields of create file action, example:

 

concat(formatDateTime(utcNow(),'yyyy-MM-dd'), <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.
 
 
Nat
New Member

Re: Create New File with date times stamp

I inserted the concat but i am not sure if you meant to put it here? It did not append the date 

thank you

 

Automation Capture 2.PNG

 

Community Support
Community Support

Re: Create New File with date times stamp

Hi @Nat,

 

When you input function, you should add the "@" tag before the expression or enter them in the Expression on the right box, for example:Annotation 2020-03-31 144316.png

 

Best Regards,
Community Support Team _ Lin Tu
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

Nat
New Member

Re: Create New File with date times stamp

Thanks so much! SUCESS! 😄

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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 (7,473)