Tag Info

Hot answers tagged


You can use an array to store the names of all the sitecollections like this $siteCollectionUrls = @("siteUrl1", "siteUrl2", "siteUrl3") for ($i=0; $i -lt $siteCollectionUrls .length; $i++) { $currentSiteUrl = $array[$i] # put logic for adding content types here } Similarly you can do kind of the same for iterating the content types in a inner ...


Take a look at this blog. It explains how to attach a workflow created in the app to a list in the host web. Attaching content types is quite a different proces than workflows, but it should give some ideas. Something along the lines of this (warning, my JSOM might be off, so check the syntax): var clientContext = new SP.ClientContext.get_current(); var ...

Only top voted, non community-wiki answers of a minimum length are eligible