Provisioning
8 TopicsSetting Up Banner Image in Programmatic Way
Hi All, I was trying to add background image in header section of sharepoint site. Through sharepoint UI we were following below step to set the background image of header section: Settings -> Change the Look -> Header -> Set the header layout as "Extended" -> Set the required background image as Optional Image. Now we are looking for a programmatic way, either from powershell or PnP-Provisioning Template to apply the same background image to number of sites. Any Suggestions are appreciated. Thank You.889Views0likes0CommentsBest practice for provisioning Content Types on Modern Sites
Hi, I'm looking for the best way to work with content types on modern sites. Currently the Content Type Hub (cth) is used for our classic sites and can't be deactivated. We started a new project to provision modern sites wit PnP Provisioning Engine. If a modern site is created, the content types from the content type hub are not available for some time. Adding content types from the cth to list or libraries makes this impossible for the provisioning engine. I see a few options 1. Create a modern site that won't get the content types from the cth and add create content types manual on the template site collection. I don't see how we can technically make this possible... 2. Reuse the provisioned content types from the content type hub in the template site This might give a conflict when the content types are provisioned by the PnP Prov Engine and not by the content type hub, not sure if this is a valid argument. 3. Create (next to the one from the cth) new content types in the template site. there will be an overlap of content types... This approach makes it more difficult for reporting or search queries. I'm looking forward to your ideas or best practices. Cheers Bernd8.5KViews0likes11CommentsHow to create Team Site with REST API
Hi Guys, I have been searching all over the place to find information about a "simple" task I want to do with REST API. I want to create a new Team Site... I have found this endpoint which lets me create a communication site, but why is there no such thing for Team Sites? "/_api/sitepages/communicationsite/create"Solved16KViews0likes3CommentsPNP Template Provisioning Document Sets
I am trying to create a PNP Provisioning template of a site and then apply this to other modern sites, but one of the content types on it is not playing ball. It's a document set and in the properties it has default content of 5 files to create 5 folders. I don't need the files but, at least through the GUI, you have to put dummy files in to create 5 folders automatically when the document set is created, which is the brief. When I create the provisioning XML, all the default files are stripped out of the document set content type. How do I go about doing this in PNP? I would settle for how to do this in PowerShell against an SPOSite, as I could run it after creation of the main sites from the templates.7KViews0likes5CommentsCannot provision SP modern site with Group programmatically - "Alias is already in use"
Hi, I'm building a solution that can provision O365 Groups with associated Modern Team Site and Teams. While trying to create some new Sites with Groups, sometimes the creation fails with the error message "The alias for the group already exists". Provisioning : Tried both using New-PnPSite from PnP PowerShell v2.28.1807.0 , as calling directly the REST API /_api/GroupSiteManager/CreateGroupEx with the same result (error) Payload: {"displayName":"TestPosh2", "alias":"13015", "isPublic":false, "optionalParams":{"Description":"","CreationOptions":{"results":[],"Classification":""}}} Response: {"error":{"code":"-2147024713, Microsoft.SharePoint.SPException","message":{"lang":"nl-NL","value":"De alias voor de groep bestaat al."}}} There isn't any visible existing Alias created in the tenant with that ID. To verify this I did check - Exchange Admin Center - Get-UnifiedGroup (Exchange) - Get-PnPUnifiedGroup - /_api/GroupSiteManager/GetValidSiteUrlFromAlias?alias='13015' They all return no matching data, the last one returns an OK status code with the available URL for site: http://tenant.sharepoint.com/sites/13015 How can I further see whether this alias can be in use, or successfully use it for the new site?4.2KViews1like4CommentsPnP js create view
Hello, I am trying to use PnP-js-core and REST to provision libraries on SharePoint Online. What I have working so far: - create the library - add a content type The next step is to add a view using PnP: myLibrary.views.add('Last Modified', false, { ListViewXml: '<View MobileView="TRUE" Type="HTML" Scope="Recursive" DisplayName="Last Modified" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/15/images/dlicon.png?rev=44" ><Query><OrderBy><FieldRef Name="Modified" Ascending="FALSE" /></OrderBy></Query><ViewFields><FieldRef Name="DocIcon" /><FieldRef Name="LinkFilename" /><FieldRef Name="Modified" /><FieldRef Name="Editor" /><FieldRef Name="Author" /></ViewFields><RowLimit Paged="TRUE">300</RowLimit><Aggregations Value="Off" /><JSLink>clienttemplates.js</JSLink><XslLink Default="TRUE">main.xsl</XslLink><Toolbar Type="Standard"/></View>' }); The view gets created but custom settings (sorting, display fields) are not applied. The new view looks just like the "All Documents" view. What am I missing?1.1KViews0likes0CommentsAdd to PnP Provisioning template using CSOM
I am currently creating a console application using the PnP provisioning engine. I'd like to be able to add a list to the template in memory using CSOM as per https://github.com/SharePoint/PnP-Guidance/blob/master/articles/provisioning-console-application-sample.md template.Lists.Add(new ListInstance() { Title = "PnP Sample Contacts", Url = "lists/PnPContacts", TemplateType = (Int32)ListTemplateType.Contacts, EnableAttachments = true }); What I can't figure out is how to do the content type bindings.Solved3.1KViews1like5Commentssharepoint online modern pages - zones or sections
the latest schema for provisioning modern pages (clientsidepage) does not seem to mention zones but refers to sections only. Yet the latest tutorial video (https://dev.office.com/blogs/programming-modern-pages-with-zones-sections-news-and-home-pages) from august refers extensively to zones and sections. I am not one of the clever sharepoint gurus, so am a bit confused. Can anyone confirm if this tutorial is current or is it now superceded by the new schema which drops zones?Solved3.1KViews0likes3Comments