Automate process creating pages

Copper Contributor

Hello,

I would like to automate the process of creating pages, does anyone know how to do this?

Thanks in advance

Louis

1 Reply

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.

https://learn.microsoft.com/en-us/microsoft-365/community/working-with-modern-clientside-pages-using...