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

Community site session details

Session Id : Iwd/QDl74U3C2kOhAoAguR
Power Apps - Building Power Apps
Answered

Rename file with HTTP request

Like (0) ShareShare
ReportReport
Posted on 29 Feb 2024 08:30:59 by 34

Hi,

 

I'm more or less new to Power Automate and mostly tinkering around with help from this forum and the rest of the internet, so I only have a very basic grasp of things at this point. 😉

 

I've tried to follow the solution I found in this forum and for support I used this page.

But something isn't working. The flow gets to the HTTP request and it gets stuck there. 

I switch the "PATCH" to "MERGE", but to no avail. 

 

This is the Body: {'__metadata':{'type':'SP.Data.Exclusion_x0020_Report_x0020_TestItem'},
'FileLeafRef':''}         (there is a dynamic element for the ref, but it didn't copy (see the screenshot)

 

What am I missing? I'm also unsure if the delay is really need at this point. 

 

 

This is the raw data:

{
    "host": {
        "connectionReferenceName""shared_sharepointonline",
        "operationId""HttpRequest"
    },
    "parameters": {
        "dataset""https://Nothing to see here",
        "parameters/method""POST",
        "parameters/uri""_api/list/GetByTitle('Exclusion Report Test')/Items(351)",
        "parameters/headers": {
            "content-type""application/json;odata:verbose",
            "IF-MATCH""*",
            "X-HTTP-METHOD""MERGE"
        },
        "parameters/body""{'__metadata':{'type':'SP.Data.Exclusion_x0020_Report_x0020_TestItem'},\n'FileLeafRef':'Exception-Report_2024.01_final_2024.02.29'}"
    }
}
 
host:
{ "apiId": "subscriptions/e9bc7b8d-bb95-4e7a-baf8-230462d93177/providers/Microsoft.Web/locations/westeurope/runtimes/europe-001/apis/sharepointonline", "connectionReferenceName": "shared_sharepointonline", "operationId": "HttpRequest" }
 
parameters:
{ "dataset": "https://Nothing to see here", "parameters/method": "POST", "parameters/uri": "_api/list/GetByTitle('Exclusion Report Test')/Items(351)", "parameters/headers": { "content-type": "application/json;odata:verbose", "IF-MATCH": "*", "X-HTTP-METHOD": "MERGE" }, "parameters/body": "{'__metadata':{'type':'SP.Data.Exclusion_x0020_Report_x0020_TestItem'},\n'FileLeafRef':'Exception-Report_2024.01_final_2024.02.29'}" }
 
 
I have the same question (0)
  • Verified answer
    Edward_Hyde Profile Picture
    34 on 12 Mar 2024 at 14:39:21
    Re: Rename file with HTTP request

    Because I'm blind.... 

     

     

     "parameters/uri": "_api/list/GetByTitle...",

     

     

     It needs to be "lists", not "list"

  • Edward_Hyde Profile Picture
    34 on 29 Feb 2024 at 09:32:56
    Re: Rename file with HTTP request

    Not needed. Deleted to avoid confusion. 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 917 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 387 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 334 Super User 2025 Season 2

Last 30 days Overall leaderboard