sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Apply Site Design in CSOM

Open manlamcheng opened this issue 7 years ago • 5 comments

I have a CSOM app to provision sharepoint site with template STS#3, is it possible to apply a site design programmatically ? thanks

manlamcheng avatar Feb 18 '19 15:02 manlamcheng

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Feb 18 '19 15:02 msft-github-bot

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)

bcameron1231 avatar Feb 19 '19 02:02 bcameron1231

Thank you! I will give it a try

manlamcheng avatar Mar 01 '19 14:03 manlamcheng

Seem that @bcameron1231 replied on the question, so closing as answered.

VesaJuvonen avatar Mar 26 '19 17:03 VesaJuvonen

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

msft-github-bot avatar Jan 25 '20 06:01 msft-github-bot