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

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

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
DeepakS
Super User
Super User

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
Regular Visitor

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

 

v-litu-msft
Community Support
Community Support

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

Thanks so much! SUCESS! 😄

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Kudoed Authors
Users online (1,940)