Forum Discussion
louisquinet
Aug 26, 2024Copper Contributor
Automate process creating pages
Hello, I would like to automate the process of creating pages, does anyone know how to do this? Thanks in advance Louis
michalkornet
Aug 26, 2024Iron Contributor
Hi louisquinet, there are some methods to create pages in SharePoint. You can use these MS Graph resources to create pages in SP https://learn.microsoft.com/en-us/graph/api/sitepage-create?view=graph-rest-1.0&tabs=http
I am not exactly sure what is your use case but you can also use tools like Cli for M365 -> https://pnp.github.io/cli-microsoft365/cmd/spo/page/page-add
or PnP PowerShell to achieve the same goal.