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 / Remove X from file name
Power Automate
Answered

Remove X from file name

(0) ShareShare
ReportReport
Posted on by

Hello community,

 

New builder here, and I hope someone can help me with this.

 

I am trying to build a cloud flow, that will delete the last 7 characters from the filename, when a file is created in onedrive (Not counting the file extension. 

I have made the formula in Excel, but I am not sure how I can build similar in Power Automate?

 

I hope someone can help me. Thank you! 

 

 

Substitute.png

 

LasseChristians_1-1622038879113.png

 

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anonymous 

     

    Try the below expression

     

    substring(outputs('Compose'),0,sub(length(outputs('Compose')),7))
     
    image.png
  • Community Power Platform Member Profile Picture
    on at

    Hi @abm 

     

    Thank you very much, it works great like this:

    Shorten name.png

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard