Hi ,
error: Filed or Property "WebTemplate" DoesNot exist.
How to load web template for a give site please find below script
sitecontext.Load(owebsite,w=>w.AssociatedOwnerGroup,w=>w.WebTemplate);
sitecontext.ExecuteQuery();
Console.WriteLine(owebsite.AssociatedOwnerGroup.OwnerTitle);
The above line i can able to load site assosciatedOwnerGrop alone, but i tyied different ways i cant abe to load webtemplate.
error: Filed or Property "WebTemplate" DoesNot exist.
Note: I can load AssociateOwnerGrop, but i cant load webtemplate.
please help me here to load webtemplate using c# for SP2010 sites.
Thanks
Murali
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Murali KrisPosted Jan 30, 2018, 12:58 AM
Nanddeep NachanPosted Jan 29, 2018, 11:46 PM
http://www.sharepointfire.com/2016/01/get-sharepoint-online-web-templates-powershell/