I'd create a flow in the Power Automate where a new page will be created by an HTTP Request with JSON.
I can replace and set text into the new page via the JSON, but I don't know how I can set the page properties.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI'd create a flow in the Power Automate where a new page will be created by an HTTP Request with JSON.
I can replace and set text into the new page via the JSON, but I don't know how I can set the page properties.
You can update the page properties using Send an HTTP request to SharePoint action like:
Method: POST
Uri:
_api/web/lists/getbytitle('Site Pages')/items(1)
Headers:
Accept: application/json;odata=verbose
Content-Type: application/json;odata=verbose
If-Match: *
X-HTTP-Method: MERGE
Body:
{
"__metadata": {"type":"SP.Data.SitePagesItem"},
"Title": "Custom title set by flow"
}
Output: