Home > Enterprise >  How should I update a page column in SharePoint via Rest Api in Power Automate?
How should I update a page column in SharePoint via Rest Api in Power Automate?

Time:10-30

I would like to update a page column via Rest Api in Power Automate but I couldn't achieve my target. It is possible to update a list column via "_api/web/getfilebyserverrelativeurl('{fileUrl}')/ListItemAllFields" uri I know but how does it work for page columns, do you have any idea for that?

a screenshot which columns will be updated via Rest Api

Thanks in advance, Fatih

CodePudding user response:

Yes, we could update column value in page using /_api/web/getfilebyserverrelativeurl('{fileUrl}')/ListItemAllFields

Below is my demo :

post /_api/web/GetFileByServerRelativeUrl('/sites/test/Pages/page1.aspx')/ListItemAllFields

body:

{
  "__metadata": {
    "type": "SP.Data.PagesItem"
  },
  "Title": "new Title"
}
  • Related