Questions tagged [pnp]

The tag has no usage guidance.

65 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
12
votes
1answer
1k views

Creating modern team site takes long time to complete

I am creating modern team sites from managed code using PnP Unified Groups utility from PnP core with app-only permissions. This has been working just fine until recently. Now, the SharePoint site ...
5
votes
0answers
114 views

Sharepoint Online - site closure and deletion not working

We have used PnP to provision sites and add policies. But when the date for deletion has passed the site collection do not get deleted. This is standard SharePoint functionality.. so I have no idea ...
4
votes
0answers
421 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 ...
3
votes
0answers
69 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 ...
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 ...
3
votes
0answers
293 views

How to set ListExperienceOptions with PnP-Poweshell

How do I set the ListExperienceOptions of a list to ClassicExperience using the PnP-Powershell? I have tried this # Create the list to hold work Types New-PNPList -Title "Work Types" -Url "...
3
votes
2answers
264 views

PnP-js-core Document form

Is there any example or guide to start using PnP-JS-core in the forms? Sharepoint Online. I've been looking for a while without luck!
3
votes
0answers
245 views

Adding view to a list content type - document set - SharePoint Online - PnP

I'm trying to add a view to a specific document set in a list. Fist I'm adding a the view to the list.. Add-SPOView -List "Demo List" -Title "Demo View" -Fields "Title","Address" But how do I add ...
2
votes
0answers
25 views

permissionKind returns void in React

I have a search function that returns all list items including their parent link based on their content type, tenant-wide. Every list item comes from a specific subsite and I want to split the ...
2
votes
0answers
101 views

Get all the site collections where Sharepoint app is instalation

In need of an approach how a user can identify whether an app is installed on the site collection or not. App can be a provider hosted or sharepoint hosted but site collection will be on office 365. ...
1
vote
1answer
34 views

to get last modified user of SharePoint Online default.aspx pages

I want to get the user name who has last modified default.aspx pages in SharePoint Online site. Only option is to use PnP powershell for SharePoint Online sites. e.g https://test.sharepoint.com/sites/...
1
vote
0answers
21 views

Make multiple File Upload with their respective fields using PNP JS

I have a picture library with 4-5 fields - Lets Take - Title(string), Date(Date), FlagOn(Boolean). I am trying to upload 10 files to my picture library and for all these 10 files i want the same ...
1
vote
1answer
71 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 = ...
1
vote
1answer
60 views

How many maximum number of sites will be returned from GetSitePropertiesFromSharePoint

I can find a number of articles on how to get all sites in SharePoint online and everyone referring to the below method https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-csom/...
1
vote
0answers
169 views

Set TaxonomyPicker with initial values from term store SPFx

I've created a command set for creating and editing a new product and save it into a SP list. That list uses a term set for the categories. When a product must being edited, the ProductEditor ...
1
vote
0answers
22 views

Two search web parts on the same site not working (only in the same page)

I have two search web parts. The are based on each other, that is is that they pretty much does the same thing with some lesser tweaking. The have different product ID and alias. Only the code is ...
1
vote
0answers
25 views

Working with npm packages in SharePoint hosted app

I am starting to work on a SP 2013 hosted app. I am planning to use typescript and have setup my project with Typescript configurations enabled. I have created a SP module called "dist" and all ...
1
vote
1answer
83 views

How to set serverProcessedContent in a ClientSideWebPart

I'd like to add a file viewer web part to the home page of my online modern site via an SPFx Part. To try to make things easier, I have a fully configured file viewer part with an Excel file on a ...
1
vote
0answers
28 views

Taxonomy for Single line of text

I'm building a FAQ Accordion with SharePoint lists and I have the previous metadata working with TaxonomyFieldType but how do I target a single line of text? Column title: FAQKeywords ( Single line ...
1
vote
0answers
716 views

Using SP-PNP-JS to get data from custom content type fields with React

I'm currently making News Listing Web Part, where News are made as custom content type. I managed to get the basic fields like id, title, but others are really bothering me. The API fetches all the ...
1
vote
0answers
31 views

Responsive Lists in SharePoint 2016 (on prem)

I'm wondering if there is a nice way to make lists work with responsive design (for mobile and tablet views)? I've been investigating this responsive framework from PnP for general page content, but ...
1
vote
1answer
1k views

Disable Read Only SharePoint Content Types - Powershell

I use the PnP Commandlets to do much of my site building but cannot figure out how to make Site Content Types not read-only. There is no way to do this with commandlets so I'm looking for some help. ...
1
vote
0answers
266 views

Set field in Content Type to Hidden

How do I set fields in Content Type to hidden? This run below runs but the field didn't change. Also how can I specify which field I want to set? var x = function () { var listContentTypes; ...
1
vote
0answers
86 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 ...
1
vote
1answer
224 views

Add-PnPDataRowsToProvisioningTemplate : Object reference not set to an instance of an object

I have been trying to extract data using the new PnP command Add-PnPDataRowsToProvisioningTemplate But I am getting a null reference exception: Add-PnPDataRowsToProvisioningTemplate : Object ...
1
vote
1answer
178 views

Does Set-PnPFileCheckedIn.cs support folders?

I have a document which is two folders deep in a document library. When I try and use Set-PnPFileCheckedIn with a Url like "/Documents/Incorporation/Objections/incorporation objection.docx" I get an ...
1
vote
1answer
442 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-...
1
vote
0answers
593 views

PnP : Error in OfficeDevPnP.Core.dll : Object reference not set for ListProvisioning

Working on Sharepoint Online with PnP Provisioning Schema of 2015/12 (here). When provisioning my website with Libraries, I'm stepping into some error that i don't understand. What i have : a web ...
1
vote
1answer
202 views

PnP Partner Pack 2.0 - Value cannot be null. Parameter name: certificate

I am setting up the PnP Partner Pack 2.0 but getting an error 'Value cannot be null. Parameter name: certificate'. I have followed the all steps and made sure to avoid below possible errors. Can you ...
1
vote
1answer
582 views

How to publish a HTML pagelayout in pnp-Powershell?

I would like to publish a pagelayout html file with pnp-Powershell. This is a custom html pagelayout which is related to an aspx file. These files are stored in the masterpage gallery.
1
vote
1answer
196 views

Site Provisioning using SharePoint-hosted or Provider-hosted?

I have been reading the OfficeDevPnP for best practices on how to create Site Templates. The best practices recommend to use Remote Provisioning using Provider-Hosted App to create Custom Sites ...
1
vote
1answer
61 views

Project from PnP Office 365 not working

I have downloaded a project from PnP office 365, which is a SharePoint add-in to deploy stuff to host site, here's the project: https://github.com/OfficeDev/PnP/tree/master/Samples/Provisioning.Jsom ...
0
votes
1answer
11 views

How to use Filter property of SPOSitePropertiesEnumerableFilter class

I would like to know how "Filter" property can be use. This is a string value but I do not see any example anywhere on how to use this property. I would really appreciate if someone can share some ...
0
votes
0answers
28 views

Can not delete site with AppOnly Permission

I am trying to delete the site with app only permissions. Below is my Provider Hosted app permissions <AppPermissionRequests AllowAppOnlyPolicy="true" > <AppPermissionRequest Scope="...
0
votes
0answers
16 views

Copy files/folders from OneDrive personal site to sharepoint online document library using PnP and preserve the files/folders' permissions

I was reading this article @ Copy a folder from one library to another and maintain permissions on the folder structure which shows how we can use power-shell commands to move files between SP on-...
0
votes
0answers
18 views

IE 11 error using Pnp.js for expand and

I have run into a consistent error, that only appears to be appearing on IE, where pnp.js will not expand or select any fields upon a function call. This naturally causes issues pnp.sp.web.lists....
0
votes
1answer
45 views

Connect-PnPOnline -PnPO365ManagementShell

I am trying to connect to PnPOnline using the following Connect-PnPOnline -Url https://Company.sharepoint.com/sites/testclientsite -PnPO365ManagementShell -LaunchBrowser After authenticating through ...
0
votes
0answers
17 views

Create document set with pnp.js api

I want to create a document set using the pnp.js api. How are you meant to do that?
0
votes
0answers
21 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
1answer
27 views

Get another user info using PnPJS with SPFx

I want to get a list of items from a SharePoint list, and display them in a specific way in SPFx webpart. I could use PnPJS to get Text and Number fields, but for the Author field, I am only getting ...
0
votes
0answers
27 views

Export Import Term Sets with PnP

I'd like to export a term set from one SP 2016 environment to another. I wanted to use this command: Export-PnPTaxonomy as in here: https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/...
0
votes
0answers
76 views

react-search: The type definition `index.d.ts` does not exist. Create one and try again

I am new to SharePoint and I'm trying to deploy a modern Search Web Part following the instructions here sp-dev-fx-webparts/samples/react-search/ When I run tsd install on the command prompt, it ...
0
votes
0answers
46 views

Pnp ListView control filter by column

That's it Is possible to filter by columns? OOB the filter looks like a search tool but if I want to filter all items which date has passed then the OOB filter property doesn't help. Best regards ...
0
votes
0answers
78 views

The type of data at position 1206 is different than the one expected

I am using below code to access site/web but keep getting "The type of data at position 1206 is different than the one expected." error. We have two separate tenants and getting this error in one of ...
0
votes
0answers
33 views

Sharepoint Multilookup Empty Field

I'm facing an issue with a multi lookup field while doing a REST API call using pnp-js. So I have this list (let's call it A) that looks up into another list (let's call it B) using a lookup field (...
0
votes
0answers
22 views

Logger registration failed. Falling back to TraceLogger

I am getting below error from PnP provisioning engine. Hoping to see if there is anyone who faced a similar issue and can help. 2019-02-20T23:41:13 PID[7340] Error 2019-02-20 23:41:13.6104 ...
0
votes
0answers
27 views

Unable to append to modal using PnP.js and Ajax

I'm unable to append a certain div to a modal when pulling in data using pnp and JavaScript. The whole process explained: Function DomyApiCalls - WORKS (Pulls in all the boxes with the titles) ...
0
votes
0answers
110 views

Unable to grab files inside folders on SharePoint using PnP js

Does anyone have some reference on why I'm unable to pull in files from a folder in SharePoint? This is what I have so far, this will be my PnP js call (I don't I'm not doing something right) <...
0
votes
0answers
22 views

Unable to pull in People or Group column using Ajax

I'm pulling in data from a SharePoint list and I'm able to successfully pull in data for the "Single text/Lookup" columns, but for some reason I'm unable to map through and pull in the People/Group ...
0
votes
1answer
209 views

Multiple attachment upload causing 409 conflict error. (SPFX, PNP)

I have noticed a bug when using the PnP library for SPFX to upload multiple attachments. Using: sp-pnp-js@3.0.10 targeting: SharePoint Online Expected Behavior Question When uploaded multiple ...