Provisioning
5 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.876Views0likes0CommentsHow 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.6.9KViews0likes5CommentsPnP 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 this example 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.1KViews1like5Comments