Questions tagged [pnp-provision]

The tag has no usage guidance.

0
votes
0answers
19 views

Can I change the site homepage within a Site Design script?

I've created a site design based on a number of scripts in PowerShell (via Add-SPOSiteScript -> Add-SPOSiteDesign). This creates a design with a number of lists & views, and adds URLs to those ...
0
votes
0answers
30 views

Apply site theme or design with PnP Provisioning

I would like to replicate the option available under "Settings - Site Design - Chose Site design - Apply to site within a PnP site provisioning template. This is a newly created subsite under an ...
0
votes
1answer
18 views

Will PnP Provisioning migrate workflows including with forms(infopath)

Can the PnP provisioning migrate infopath forms with workflows(SharePoint Designer) with ease? As anyone use this template successfully before ? Thanks in Advance
1
vote
1answer
56 views

Adding a listview web part - modern team sites

I need to add a list view web part with c# like below: My best guess is using PnP is the wat to go. I would think something like below is the first part (correct me if I am wrong): var page = ...
0
votes
0answers
23 views

Get-PnPProvisioningTemplate : Get additional pages from Pages library as a part of the XML file

How can i get the pages from Pages library as a part of the XML file?
0
votes
1answer
23 views

provide a SPOSiteDesign from XML instead of JSON

Is there a way to provide a modern ui site template based on an XML file? This doesn't seem to work. $site_script = Get-Content -Path "./siteTemplate1.xml" -Raw $SiteScript = Add-SPOSiteScript -...
0
votes
1answer
11 views

provide teamsite template trough sitescript: cannot convert Object[] to string

I made a (simple) sitescripttemplate in JSON which I would like to make available for all the users who can create a site. The inconvenience lies in the fact I only got it working which I write the ...
0
votes
0answers
19 views

Provision a list with attached content type and site columns

I have a custom content type defined in the contenthub, with attached custom site columns. I want to provision a list (via site script and site design). But with the solution I have, the content type ...
1
vote
1answer
119 views

PnP powershell provision Site with webpart

I am dynamically creating sites (Modern sites/pages) and I want to add embed webpart with embedded code each time a site gets created. How can I do that with PnP Powershell script?
2
votes
0answers
42 views

PNP Provisioning - WelcomePageView in Document Sets

I see that this is now supposed to be supported through the 2018/07 schema? There is at least something there. <XmlDocument NamespaceURI="http://schemas.microsoft.com/office/...
1
vote
0answers
157 views

PnP Provision Page Layout in Sharepoint Online

I am provisioning Sharepoint online page layout changes using pnp provisioning. Steps performed are: 1- Go to SiteCollection->Design Manager-> Upload Design Files-> click on _catalog/masterpage/ link ...
1
vote
0answers
33 views

Update page after provisioning modern page

I'm using the Pnp framework to provision a modern site with some web parts on it. After adding Quick Links web part and open the page I see the text "We didn't find anything to show here." in that ...
0
votes
1answer
122 views

Programatically add a user to people web part

I'm trying to programatically(c#) add a user to a sharepoint People web part on a modern page but with no success. I try to set the "persons"-property the same way it looks after adding a person ...
1
vote
1answer
19 views

Twitter feed programmatically on modern page

Building a mvc app for sharepoint. Anyone know how to programmatically add a twitter feed on modern page in sharepoint?
2
votes
0answers
53 views

Provision site with pnp package gives file not found error

I would like to move the provisioning templates to SharePoint Online so I need to convert them to pnp package. I try to convert a folder with provisioning files using the Convert-...
0
votes
0answers
76 views

Add Remote Event Receiver via PnP Provisioning Schema

I am Working with PnP Provisioning engine and its working as expected. Now what I am looking for is to associate Remote Event Receiver to List/Library via PnP Provisioning Shema. Below is the link ...
0
votes
1answer
122 views

PnP Site Provisioning saving site template, but not homepage

I am using PnP PowerShell to save a SharePoint TeamSite (STO#3) as a provisioning template. This works fine. However, the homepage of the site is not being saved. My PowerShell Script: # Variables ...
1
vote
1answer
86 views

PnP Site Provisioning Documentation

I have successfully saved a Site Template using the following PowerShell command: Get-PnPProvisioningTemplate -Out $templateFile -PersistBrandingFiles -PersistPublishingFiles; I'm looking in the ...
0
votes
0answers
17 views

Feature Framework Site Provisioning vs Remote Site Provisioning - Moving Content

My understanding is if you use Feature Framework Site Provisioning, you can save off 50MB of data to the Template. I tried it and received that message. Does that limitation still exist in PnP Site ...
1
vote
3answers
238 views

Provisioning a Site template to several SharePoint Group Sites with PowerShell

I am trying to search for site collections which are of the type "Office 365 Group site collections (GROUP#0)" and then want to apply the Provisioning Template to all the group sites returned in the ...
0
votes
2answers
333 views

Export Import Workflow SharePoint Online

I have got created a list workflow in SharePoint Designer for a SharePoint Online Site Collection. Now I want to export this workflow and import it automatically to a new site collection during / ...
2
votes
2answers
182 views

PnP Provisioning | Create a SharePoint list with rating enabled

We are unable to create a SharePoint list with rating enabled on it. Can someone help us in creating XML schema for the above requirement. Thanks in advance.
0
votes
0answers
131 views

Include Specific list in PnP Provisioning

I would like to use PnP Provisioning engine to clone list from one site to another. In order to do so, I would like to create provisioning template with just one list in it. When I use ...
0
votes
1answer
200 views

ApplyProvisioningTemplate SharePoint Publishing Feature no response in SharePoint Online

We want to enable some SharePoint features during the provisioning process. In our PnP-Template there are three GUIDs of features, which have to be enabled: <?xml version="1.0" encoding="utf-8" ?&...
0
votes
1answer
47 views

WebPart disappears after applying template

I have a Shared Documents list that I add to a page: <pnp:WebPart Title="Documents" Zone="Body" Order="1"> <pnp:Contents> <webParts> <webPart xmlns="http://...
1
vote
2answers
93 views

Run PnP provisioning script in the cloud

With SP2010, we had our site provisioning process on the server. Now, with SharePoint Online, we have no servers anymore, we got PnP provisioning, that is great, but now I wonder, can I put the PnP ...
0
votes
0answers
18 views

Add site navigation to views

How can I add the site path by default to all files created during PnP provisioning? I could add this to specific page like this, where I have the option to use an external aspx files: <td ...
0
votes
0answers
219 views

Add Field List Instance to List Content Type using PNP Provisioning

I'm using PNP provisioning templates. I have created a template for the root site that creates columns and content types. In the subweb, I have another template that creates 2 list instances. One ...
2
votes
2answers
216 views

Content Type is provisioning in SharePoint Online

I am aware that custom content type will not be available immediately in any existing site when we create a new one. In my experience, I have seen that it takes somewhere around 6-8 hours to appear in ...
1
vote
1answer
49 views

Should GUID's be unique?

I'm a little confused about the guid's used in the provisioning template. I understand that I can generate a new guid with the {guid} token. What is not clear, when shall I use it? What is the scope ...
0
votes
2answers
383 views

PNP Provisioning: read external content into template

Can I have the different sections of a PNP provisioning XML template in separate files and combine them when applying the template? Like having all lists in a lists.xml, refer to this list in the ...
1
vote
0answers
106 views

PNP site provisioning: how to remove top link bar and site title completely?

I would like to remove the top link bar and the page title and gain the space occupied by them. I can hide them by adding this to the template: <SharePoint:StyleBlock runat="server"> .ms-...
1
vote
1answer
87 views

How to site Provisioning in office 365 (SharePoint online) by Custom

I want to do site provisioning (Custom), not using pnp starter kit, all should be done by custom. I have custom list/ columns, custom look and content type. How to package and how to deploy on o365
0
votes
1answer
63 views

Order web parts on page

Can someone give me a hint, how can I rearrange web parts on the page? Changing the Column property or giving 3 or higher value to the Row property gives always an error during provisioning: Apply-...
0
votes
1answer
583 views

Use XML Web part in PnP provisioning template

I exported an xml viewer web part with Get-PnPWebPartXml and expected that I could copy-paste this to a pnp provisioning template. Looks like that the schema is different and instead of this (example ...
0
votes
2answers
325 views

Site provisioning: add web part to page

I would like to present a document library on the home page (default.aspx) of a classic SPO site. What I would do with hand is to edit the page - add web part - apps - select the document library. I ...
0
votes
1answer
58 views

SharePoint Site Script throwning error

I am planning to use SharePoint Site Scripts to provision modern sites. But, when I run command on PowerShell to add site script I am running to error. I am facing the same issue, in other tenant as ...
0
votes
0answers
301 views

Add lookupfield using powershell

I would like to add a lookupfield as a sitecolumn using PowerShell...but I don't want to use xml definition. Anybody has a solution using pnp cmdlets ? Thx
0
votes
2answers
620 views

SharePoint PnP PowerShell Provision Comments with Modern page

I an provisioning some modern pages from One site to another using SharePoint PnP PowerShell by Generating and Applying Provisioning Template. I am able to Provision the page with web parts but the ...
3
votes
0answers
68 views

Composed look does not get applied to the new site collection using PnP Partner Pack

I create a site collection as I made some simple modifications like I applied a new composed look which is an OOTB one. I added two pages in the site pages library. I saved the site as a template ...
6
votes
2answers
1k views

Adding Spfx Web Parts to Modern site Pages using PNP CSOM in Azure AD Apps

I had Create a web application with Azure AD authentication using Azure AD Application. I had granted all permission for SharePoint Online,Graph Api and Active Directory to the App for provisioning ...
0
votes
1answer
118 views

Add SFPX Extension to an existing App Package

Just wondered if anyone has successfully added an SPFx extension to an existing App Package or provisioned without using an package. We have an existing hosted provider application, an associated ...
1
vote
1answer
81 views

Create a .pnp file from a directory

I would like to source control an XML provisioning engine template and all of its required assets (js, css, html, etc.) in a Visual Studio project. When the time comes to provision the site, Id like ...
5
votes
3answers
3k views

How to Provision a list with data using SharePoint Online PnP C#?

I have a custom list with few records in it. Now I am using PnP Provisioning Engine to provision the custom list to some other sites. By default, PnP is only provisioning the list structure and ...
4
votes
0answers
408 views

How to provision the custom list form using PnP Provisioning Engine?

I am following this article for provisioning Sites for SharePoint Online through console application. Now, In the base site, I have created the custom list and a new custom list form for the list. I ...
1
vote
0answers
83 views

pnp update existing out of the box field

I have an xml document which contains a list of content types and fields. One currently contains a field that is out of the box, which I am wanting to change the default value of within this xml ...
3
votes
0answers
36 views

PnP Provisioning engine apply same configuration to all lists of a certain tpye

As far as I can see from the PnP provisioning engine, each list instance needs to be specifically defined in the XML file. Is there a way that you can define one particular configuration to apply to ...
0
votes
1answer
157 views

PnP provisioning Frame work import search configuration

Through PNP provisioning frame work I am Provisioning some Site column, Lists, JS, CSS etc file to a newly created site. It work fine but when i tried to Import a Existing Search XML to the newly ...
0
votes
1answer
218 views

SharePoint Online PNP Provisioning framework- Webpart added multiple times when deployed multiple time

We have used PNP Provisioning framework to deploy Custom Pages. I am facing below issues: Even if the Overwrite="false" I can see that the page is modified and in some pages the some webparts are ...
1
vote
1answer
432 views

Get-PnPProvisioningTemplate User Groups and Workflows

In my today's SharePoint situation I need to replicate an website from a dev environment into another dev environment (without content, only structures). I have been looking to the Get-...