Can we create pages with webparts from site designs and site scripts?

Visitor

Hi ,

 

Can we create pages with webparts from site designs and site scripts? When user clicks the site template in sharepoint site, my requirement is to create a pages and having 4 or 5 out of box webparts like News,Documents etc.

If any one has any idea or any alternative approach please let me know

 

2 Replies

@Naresh1630 There are no actions available for creating pages using site design (templates) and site scripts.

You can find available actions at: Site template JSON schema 

 

Related article: THE ULTIMATE GUIDE TO SHAREPOINT SITE DESIGNS AND SITE SCRIPTS - This states that currently it is not possible to created pages & add web parts using site templates


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

@Naresh1630 As you want to automate the page creation process, check below video if it helps you to create new pages using page templates and power automate flow:

 

Create SharePoint Site Pages automatically with Power Automate 


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.