09-11-2021 10:35 AM
For any SharePoint modern page that we create manually, there always be a page title that you cannot remove using the SharePoint UI at the moment. There are known options to remove the page title using PnP PowerShell and Microsoft 365 CLI.
What if you cannot use PowerShell or Microsoft 365 CLI to achieve this, what extra option could be used?
The logic behind those options is that on the background they change a hidden field in the Page, which is the PageLayoutType field. This field is not exposed through the UI but is accessible and editable through the SharePoint REST API.
If the data is accessible and editable through the SharePoint REST API, we can manipulate it using a Power Automate flow as below:
This sample flow updates this property using the Send an HTTP to SharePoint action.
Instructions after importing the flow:
Update the flow trigger to point to the pages library you want after importing.
Note that the Pages Library is not listed on the options for the triggers, however, you can add the list manually by adding its id (GUID), which can be found on the library settings page URL:
If you want to reuse the same flow in more libraries, use the attached JSON column formatted to add it, and call it from a button (remember to update the flow id in the button JSON). The flow was designed to detect the URL from the selected page dynamically in all the actions based on its trigger values.