Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Problem with web.getAvailableWebTemplates

$
0
0

Hi

I have a SharePoint hosted app, that displays the current available webtemplates to the user. When the host web is setup to allow all webtemplates, there is no problem. When I restrict the webtemplates to only a few I am getting an empty result from the method. I am using the method "getAvailableWebTemplates" on the SPWeb object. It is also possible to test it with appending "/_api/web/getavailablewebtemplates(1033)" to the url of the current site

I have tested it with both publishing web and team sites and the same thing happens both places.


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>