Showing results for 
Search instead for 
Did you mean: 
New Member

Using dynamic name in Copy file

Hi folks,


I am building a flow that copies some file in the same Sharepoint folder. My problem is that the name of the file to be copied differs from month to month. I tried to build a variable before the Copy file step (formatDateTime(utcNow(), 'MM')) to be used as dynamic content to build my file name aka "Sales 2022-08.xlsx" but I am struggling to provide correct string in the "File to Copy" part. I use this syntax to build dynamic file name but it doesn't seem to work. Instead of value "2022-08" to be inserted into the file name I get that formatDateTime formula :



How do I correctly build the dynamic name? Tried without single quotes, tried using "&" for concatenation - nothing works. Googled a lot without any success.

Thanks for any tips.

Super User
Super User

Hi there, 


You'll want to use concat() as an expression, using the expression tab which is to the left of your dynamic content tab

@manuelstgomes has a great blog post on how this can be used:


Did this answer your question? Please mark it as the solution.
Did it contribute positively towards finding the final solution? Please give it a thumbs up.

I answer questions on the forum for 2-3 hours every Thursday!

Helpful resources

Power Automate News & Announcements

Power Automate News & Announcements

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

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,458)