Hi,
I am struggling to write a flow to be able to change the "Title" of a SharePoint site sub-page.
I have managed to write a script to create a SharePoint Sub-Page using the "Send an HTTP request to SharePoint" with the Uri: /_api/web/webinfos/add
In another flow, I have used the Uri: /_api/sitepages/pages(@{outputs('Get_file_metadata_1')?['body/ItemId']})/CheckOutPage
to get the page and use the Uri: /_api/sitepages/pages(@{outputs('Get_file_metadata_1')?['body/ItemId']})/savepage
with the Body:
{
'parameters': {
'__metadata':
{
'type': 'SP.Web'
},
'Title': '@{variables('Project Name')}',
'Description': '@{variables('Project Description')}',
'Language': '1033',
'WebTemplate': "STS#3"
}}
The JSON seems to be invalid. I've been struggling with this for weeks now.
Can't seem to find any posts explaining how to edit things in SharePoint site pages.
Any help is much appreciated.
Pete