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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Change Filename to Tit...
Power Automate
Answered

Change Filename to Title Case Desktop

(1) ShareShare
ReportReport
Posted on by 73
Hi Experts
 
I'm totally novice at Power Automate. Just shifted from Mac Automator to Power Automate.
 
I often need to change Files Names to Title Case on my Desktop. Tried using 'Change Text Case' but that doesn't seem to work.
 
Please help with the same.
 
Thanks a lot 🙏 
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,478 Super User 2026 Season 1 on at
    Hello,

    First use Get files in folder to get the files you want to rename to Title case.
    Then use that in for each loop.
    When the change text case has produced the variable with correct casing:


    Use that in Rename File(s) -action.

    Like so:


    Before:

     
    After:
  • SanjayGMusafir Profile Picture
    73 on at
    @eetuRobo Thanks a lot 🙏 that helped
  • SanjayGMusafir Profile Picture
    73 on at
    @eetuRobo Thanks for helping
     
    I had one additional enquiry in continuation to the above.
     
    I tried to use your method - 
    • When I do exactly as advised, it works fine.
    • But at times I need to use it in the middle of a flow (screenshot attached). At that time it gives error - Unable to rename file.
    Please help
     
    Thanks a lot 🙏
     
  • Suggested answer
    eetuRobo Profile Picture
    4,478 Super User 2026 Season 1 on at
    No worries!

    I answered this in your new thread but I put bit more simple way in my opinion here:


    Code to copy (remember to change the first actions initial folder):
    Display.SelectFileDialog.SelectFiles Title: $'''Choose Files''' InitialDirectory: $'''C:\\Users\\x''' IsTopMost: False CheckIfFileExists: False SelectedFiles=> SelectedFiles ButtonPressed=> OpenFiles
    File.RenameFiles.RenameReplaceText Files: SelectedFiles TextToReplace: $'''_''' ReplaceWith: $'''%' '%''' IfFileExists: File.IfExists.DoNothing RenamedFiles=> R000
    SET oNames TO R000
    IF OpenFiles = $'''Open''' THEN
        LOOP FOREACH CurrentItem IN oNames
            Text.ChangeCase Text: CurrentItem.NameWithoutExtension NewCase: Text.CaseOption.TitleCase Result=> nName
            File.RenameFiles.Rename Files: CurrentItem.FullName NewName: nName KeepExtension: True IfFileExists: File.IfExists.DoNothing RenamedFiles=> R002
        END
    END
    
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 362

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 202 Most Valuable Professional

Last 30 days Overall leaderboard