Questions tagged [pnp-provision]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
31 views

pnp schema template issue - how to inlcude “new and existing guests” option in the schema

I am not finding the right XML schema to include it in my PNP provisioning template. How can I include settings called "New and existing guests" for external sharing while provisioning a site using ...
0
votes
1answer
38 views

PNP Apply-ProvisioningTemplate - SharePoint List's field is skipped if of different type

I am currently using Azure Build and Release Pipelines to automate deployment to a testing environment. A PowerShell script is used to re-apply a template.xml file for the sites lists and libraries ...
0
votes
0answers
24 views

How to migrate all sites from one HubSite from one tenant to another

I have got at my test tenant a lot of sites conected by hubsite. It is posibility to copy only the sites from one Tenant to another Tenant ?Production Tenant. Have you try to do this task in your ...
0
votes
0answers
59 views

PnP - Apply-PnPProvisioningTemplate restoring data from wrong list

I'm using the latest release of PnP PowerShell for SharePoint Online. I'm also creating a Provisioning Template using this command: Get-PnPProvisioningTemplate -Out "C:\templates\mylist.pnp" -...
0
votes
0answers
92 views

Parameters in PnP template in JsonControlData property

I tried to provision a modern site with a people web part. The configuration of this web part is mainly stored in a property called JsonControlData. I would like to know how to properly add ...
0
votes
0answers
24 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
172 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
39 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
303 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
133 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?
1
vote
1answer
35 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
24 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 ...
1
vote
1answer
214 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?
3
votes
0answers
92 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
307 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
41 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
244 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
40 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
124 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
1answer
193 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
106 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 ...
1
vote
3answers
354 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
599 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
276 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
220 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
271 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
71 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
119 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 ...
2
votes
2answers
325 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
72 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 ...
1
vote
2answers
682 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
141 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
141 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
117 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
857 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
440 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
97 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
386 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
798 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
77 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
135 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
101 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 ...
6
votes
3answers
4k 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 ...
5
votes
0answers
512 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
106 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
38 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
164 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
234 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
530 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-...