cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
scscott
Frequent Visitor

Send an HTTP Request Post "update" Page Properties

Currently my flow:

  1. Takes MS Form response
  2. Using Send an HTTP Request
    1. Copy a template with Page properties webpart
    2. Past into different folder with a new name
  3. Post Page Properties (this is where the error happens)
    1. I keep getting "The type SP.FileCollection does not support HTTP PATCH method.
      clientRequestId: 89e791e9-ecd6-4a65-a2f2-99859e97f9a6
      serviceRequestId: 7ae7b59f-70d6-b000-b1eb-cfc21c81d5ea"

I am able to get the site page based on the Uri but cannot figure out how to update the properties.

CropperCapture[79].jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @scscott,

 

You are getting this error because your Headers are different. You are using odata=verbose. In my example I was using the odata=nometadata value.

 

Can you try and use these headers:

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

View solution in original post

5 REPLIES 5
Expiscornovus
Super User
Super User

Hi @scscott,

 

Can you try and use the id of the page in the URI field instead of your filter to update the page title. Below is an example of that approach.

 

updatetitle_basedonid.png

scscott
Frequent Visitor

@Expiscornovus 

Thank you for the quick reply. I tried getbytitle already and that is how i ended up with the filter solution since i was unable to find the file. I did 2 tries based on your image above. The first I used "Site Pages" (as you showed) and the second I did "SitePages" and I received the same error that the flow was not able to find the file. I have attached what the input, output and file information in hopes that you can help resolve this issue. 

  • Could the problem be that I have added a folder in Site Pages which is not standard?

Capture.PNGError.PNGfile.PNG

Expiscornovus
Super User
Super User

Hi @scscott,

 

That folder part is not needed since we are referring to the id. Can you try this URI instead? 

_api/web/lists/getByTitle('Site Pages')/items(70)

 

It appears that we are on a different error. 

 

CropperCapture[80].jpg

CropperCapture[83].jpg

CropperCapture[82].jpg

CropperCapture[81].jpg

 

Expiscornovus
Super User
Super User

Hi @scscott,

 

You are getting this error because your Headers are different. You are using odata=verbose. In my example I was using the odata=nometadata value.

 

Can you try and use these headers:

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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (7,370)