Apply Site Design in CSOM
I have a CSOM app to provision sharepoint site with template STS#3, is it possible to apply a site design programmatically ? thanks
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
A couple ways to apply a site design programmatically using REST, PowerShell and CSOM.
To use REST or PowerShell - https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview#using-powershell-or-rest-to-work-with-site-designs-and-site-scripts (notice the left nav will link to both REST and PowerShell examples.)
Using CSOM, you can use tenant.applySiteDesign(). Documentation can be found here https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-csom/mt845990(v%3Doffice.15)
Thank you! I will give it a try
Seem that @bcameron1231 replied on the question, so closing as answered.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues