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 / Rename multiple files ...
Power Automate
Unanswered

Rename multiple files with different names

(0) ShareShare
ReportReport
Posted on by

Hello,

I have been working around with some file which i have connected to power BI.

 

I download the files daily (the files are downloaded with a suffix of today's date).

 

Is there any way to automate this stuff , means the trigger will look for a a particular text in that folder, if found then rename it by removing the suffix. (this needs to be done for 10 files)

 

Example : the file named "CustomerRegistrationSummaryReport01022022.xlsx" needs to be renamed to "CustomerRegistrationSummaryReport.xlsx"

 

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @deeppawar,

    Do you want to remove the date numbers from the file name?

    Where do you save this download file, SharePoint or OneDrive?

     

    Actually, there is no OOB function or action to extract numbers from a file name. If you have set the date number as a fixed format like 8 digits, you could try a solution as below.

     

    vqiaqimsft_0-1646893780604.pngvqiaqimsft_1-1646893800792.png

    concat(substring(outputs('Compose'),0,sub(length(outputs('Compose')),13)),'.xlsx')

    Note that I assume that you have format date number into 8 digits, so you should count 13 for the file name except for the string part.

     

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