如何获取从特定的自定义网站模板创建的所有SharePoint网站? [英] How to get all SharePoint sites created from specific custom site template?

查看:85
本文介绍了如何获取从特定的自定义网站模板创建的所有SharePoint网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个SharePoint网站集,它具有从标准模板(博客,团队,发布)以及自定义网站模板创建的子网站.我想获得从我的自定义网站模板创建的所有子网站的列表.有什么办法可以做到这一点

I have a SharePoint Site Collection, which has subsites created from standard templates like (Blog, Team, Publishing) as well as custom site template. I want to get a list of all subsites created from my custom site template. Is there any way to get that list using CSOM or REST API?

推荐答案

您可以使用以下URL根据名称获取网站模板

You can get the site template based on the name using following URL

https://sharepointsite/_api/web/GetAvailableWebTemplates(1033)/getbyname( 'templateName')

使用powershell脚本获取自定义网站模板的模板ID或名称.请参阅以下帖子以获取更多信息

http://www.c- sharpcorner.com/UploadFile/sagarp/sharepoint-2013-site-template-id-list-for-powershell/

http://www.c-sharpcorner .com/blogs/get-available-site-templates-in-sharepoint-using-rest-api1

这篇关于如何获取从特定的自定义网站模板创建的所有SharePoint网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆