web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create file to share p...
Power Automate
Unanswered

Create file to share point, how to change file name with timestamp?

(0) ShareShare
ReportReport
Posted on by 2
Hi, 
 
I'm in using "Create file (Sharepoint connector)", how to change the file name with timestamp? eg. oringinal name is ABC.xlsx, change to ABC20240925.xlsx.
 
"name": "@item()?['name']", This is the code to use original name, whic is successful.
 
"name": "concat(@{item()?['name']} ,utcNow('yyyy-MM-ddTHH-mm-ssZ'))", This is the code, try to add timestamp after original file name. but the result is failed to have proper file extention name, and file name is same to concat string. 
 
How to correct it? 
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at
    Try this instead in the expression editor

    concat(split(item()?['name'], '.')[0], utcNow('yyyy-MM-ddTHH-mm-ssZ'), '.', split(item()?['name'], '.')[1])
    Or if you want to copy/paste it as text try:

    "name": "@{concat(split(item()?['name'], '.')[0], utcNow('yyyy-MM-ddTHH-mm-ssZ'), '.', split(item()?['name'], '.')[1])}"

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard