Creating a customized Sharepoint Organization template (theme and webparts on home)

Copper Contributor

Hello,

 

I've been trying to create a template where on any new site made, it will automatically have the theme (branding, colors, fonts) and Home page webparts laid out. I was able to get the theme applied using site scripts and design documentation, but I'm having difficulty with the webparts on the home page.

 

Is there a way for me to grab the JSON from the webparts on a site home I've already made and add it into an organization template using site scripts and design? Any other methods that others have used?

 

Thanks,

Emily

1 Reply
So Theme you can create using site design:
https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview

But for copying the webparts, you will need to trigger power automate and copy from an existing site or use Page API!

https://learn.microsoft.com/en-us/graph/api/sitepage-create?view=graph-rest-1.0&tabs=http