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 / Send a HTTP request ba...
Power Automate
Unanswered

Send a HTTP request bad gateway

(0) ShareShare
ReportReport
Posted on by 18

Hi, I have a flow which based on a form will update and rename a sharepoint folder.

NiallOB01_0-1682591266697.png

 

However when attempting to find the file its unable to find the file.

NiallOB01_4-1682591470030.png

 

 

The file I have checked is named correctly in a subfolder of projects

As you can see by the URL and the file name, it is correct.

NiallOB01_3-1682591386114.png

 

 

 

I am unsure of where it might be going wrong, any advice would be greatly appreciate.

 

 

 

 

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @NiallOB01,

     

    I see you made a typo in your Accept and Content-Type header values. The Header values should be Odata not Adata.

     

    Here is an example of such type of MERGE headers

    {
     "Accept": "application/json;odata=verbose",
     "Content-Type": "application/json;odata=verbose",
     "If-Match": "*",
     "X-HTTP-Method": "MERGE"
    }

     

    When using verbose MERGE headers also make sure you the correct odata type for the folder in the body of the request.

    In my example below that is SP.Data.Project_x0020_FoldersItem. In your setup might be different.

     

    {
     "__metadata": {
     "type": "SP.Data.Project_x0020_FoldersItem"
     },
     "Title": "NewFolderName",
     "FileLeafRef": "NewFolderName"
    }

     

    For both scenario I have blogs with code examples:

    https://www.expiscornovus.com/2022/11/15/get-odata-type-folder/

    https://www.expiscornovus.com/2022/11/15/rename-a-folder/

     

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