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 / Send an http request t...
Power Automate
Answered

Send an http request to rename file fails for PowerPoint docs

(0) ShareShare
ReportReport
Posted on by 13

Hello,

 

I have created a flow that finds files in a SharePoint folder and if the filename has the character "_" to rename the file by keeping everything before the character. If the filename doesn't have this character, it does nothing.

 

It works perfectly for all document types I tried but pptx. In the case of pptxs, it keeps only the first character and removes everything after this, no matter where the "_" is.

 

Original filenames

astavrid86_0-1707850426515.png

 

Filenames after the flow has run

astavrid86_1-1707850457861.png

 

The funny thing is that, looking at the flow, the filename should be correct for all, including the pptx.

astavrid86_2-1707850800544.png

 

 

 

Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,989 Super User 2026 Season 1 on at

    Hi @astavrid86 ,

     

    Can you share the flow steps and expressions you are using to remove the "_" underscore character from the filename?


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as ☑️ Solved.
    If you like my response, please give it a Thumbs Up.
    My Blog Site

  • astavrid86 Profile Picture
    13 on at

    hello @ekarim2020 ,

     

    Thanks for the response. Please see below the flow steps.

     

    astavrid86_0-1707993606095.png

     

    In a nutshel, I am checking each file in the folder to fiding the position of "_" in the filename. If the character does not exist (i.e. text position is -1), then the flow does nothing. Otherwise, I create a substring to remove everything before this. 

     

    astavrid86_1-1707993802756.png

    Following this, I send an Http request to rename the filename

    astavrid86_2-1707993866702.png

     

    As I mentioned before, the flow seems running perfectly, and yet excel filenames change correctly in Sharepoint where ppts not

    astavrid86_3-1707994027646.png

    astavrid86_4-1707994050581.png

     

  • Verified answer
    astavrid86 Profile Picture
    13 on at

    Actually, the issue was not 100% file type related. It was the fact that some filenames started with "1.", "2.", etc. I created another compose that is taking the original filetype before the rename conversion and then used it in the new filename as well (see below). This solved the issue

     

    astavrid86_0-1708019359393.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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard