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": "*"
}


Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


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



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


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)

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


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": "*"
}


Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,768)