cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sertan_CPH
Helper II
Helper II

Generate a copy and timestamp of excel sheet

Hi all,

 

Could you show me how to get an excel file on Sharepoint and create a copy and place back in a folder on Sharepoint and name it as file_ddmmyy ? This will be a scheduled occurance on every Friday at 18:00 

 

Thanks for the help!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
CFernandes
Super User
Super User

Hey Mate,

 

Sample Flow -

 

CFernandes_1-1610966583409.png

 

 

Formula used to create Filename-

 

concat(outputs('Get_file_properties')?['body/{Name}'],formatDateTime(utcNow(),'ddMMyy'))

 

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

8 REPLIES 8
jinivthakkar
Super User
Super User

Please try something like this, please add dynamic values as required :

 

jinivthakkar_0-1610966429082.png

 

jinivthakkar_1-1610966464951.png

jinivthakkar_2-1610966503932.png

 

Hope this helps.

 

CFernandes
Super User
Super User

Hey Mate,

 

Sample Flow -

 

CFernandes_1-1610966583409.png

 

 

Formula used to create Filename-

 

concat(outputs('Get_file_properties')?['body/{Name}'],formatDateTime(utcNow(),'ddMMyy'))

 

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Hi @CFernandes,

 

May I ask why you chose to have few more items as apposed to @jinivthakkar 's solution? 

@Sertan_CPH To be honest our solutions overlapped(we posted at approx the same time).

 

But that being said, I have not hardcoded values in my solution so you will see few extra steps. Its is a complete solution 😊

Many thanks for the answer. I just could select only one solution though 🙂

@Sertan_CPH I am glad my solutions worked\helped… 😊

Hi @CFernandes,

 

How could you write the code again so there is an underscore between the file name and the date? 

@Sertan_CPH 

 

Sure thing.

 

concat(outputs('Get_file_properties')?['body/{Name}'],'_',formatDateTime(utcNow(),'ddMMyy'))
 
The output will be 
Untitled.png
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,946)