Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pnp]

The tag has no usage guidance.

1
vote
1answer
35 views

Alternative PnP commands to SharePoint Online Commands

Are there any alternative PnP commands to SharePoint Online Commands such as: Connect-SPOService Disconnect-SPOService Set-SPOUser Set-SPOSite Get-SPOSite Add-SPOSiteCollectionAppCatalog Thank you ...
3
votes
2answers
49 views

PnPJS - Check if site collection exists

With PnPJS, is there a way to check if a site collection exists given several URL? Something like this: import {Site} from '@pnp/sp'; const sitesToCheck = [ 'myspsite.net/sites/sc1' // exists '...
1
vote
0answers
9 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
17 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 ...
2
votes
0answers
16 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 ...
0
votes
0answers
13 views

Error while using `inBatch` in SP PnP JS

We are using SP PnP JS inBatch method to batch requests but are getting error. Below is the sample code snippet. sp.web.lists.getByTitle('ListName') .items .filter("Filter condition") .inBatch(...
0
votes
0answers
20 views

SPFX: Custom action to move bulk document from one library to another and adding metadata to these files

My scenario: I need to be able to bulk move files from one library to another and also bulk add metadata to those newly move files. I thinking of creating an spfx/react application or any method is ...
0
votes
0answers
44 views

Trying to show list items based on the currents user permissions (view)

I have a search functions that get list items as well as their parent URL (each a sub site) from an tenant. I want the current user to be shown only the list items where their parent site (URL) have ...
0
votes
2answers
47 views

sharepoint get list item returning wrong date time

i noticed while testing that the sharepoint get list item call i am making through pnp sp is wrong. i tried going to the endpoint url directly to check but the return date is the same (wrong date) . ...
0
votes
1answer
46 views

Sharepoint O365 pnp js get all users

I know this has been asked several times but I haven't found a viable solution. I am building a spfx webpart where I want to display every single user with name, title, email etc. I am using the pnp-...
0
votes
0answers
12 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
1answer
37 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 ...
0
votes
2answers
128 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 / ...
4
votes
1answer
157 views

PNP JS in SharePoint

Till date we are coding custom solutions in SharePoint using JavaScript/jQuery/REST API, I need to know if there are any downfalls of using PNP JS as an alternate to REST? My company is pushing all ...
1
vote
1answer
120 views

SPFX - cannot get actual label of managed metadata list field

I am using @pnp/sp to get list item data from sharepoint and i am getting list items with managed metadata field and user field. i can get all but not the metadata label which is the one i mainly need....
0
votes
1answer
56 views

Setting default content type in Sharepoint Framework

I'm creating a list and then adding an existing content type to it. Is it possible to set the content type as default? Or would it be possible delete the primary content type? Here's my code. Thanks ...
0
votes
1answer
43 views

Adding a custom view to a list doesn't add all columns (Using PnP in Sharepoint Framework)

I'm creating a list with PnP with an allready existing content type and then I'm trying to add a custom view with the columns from that content type. The problem is that the view gets created but it ...
1
vote
1answer
116 views

Use an existing Content Type when you create a new list with PnP-js in SharePoint Framework?

I've searched for hours to find an answer, but wasn't able to find anything I could use for my case. I'm using PnP to create a new list on my site but I would like to use an already existing Content ...
1
vote
1answer
15 views

How to differentiate between PNP powersehell command for sharepoint online versus sharepoint 2013

How to differentiate between PNP powershell command for sharepoint online versus sharepoint 2013? I have both installed Thanks in advance
0
votes
0answers
54 views

Search query not working when using a date variable (does when hard-coded) in Internet Explorer

Issue In my SPFx app I am using search to pull back events. Everything is working great, except in IE and Edge. I have determined what it doesn't like, but not why it doesn't like it. Rendered ...
2
votes
1answer
63 views

Pnp : create a search query

I need a little remembering on pnp.search() queries. I know from a verified source that you can use either query text, SearchQuery Interface or SearchQuery Builder. No worries about that (except that ...
0
votes
1answer
169 views

Updating sharepoint list items with batch pnp, in bad request

I've used this guide to create my batch and update the items. var list = pnp.sp.web.lists.getByTitle("Categories"); list.getListItemEntityTypeFullName().then(entityTypeFullName => { var batch =...
0
votes
1answer
86 views

With PNP JS, How do I handle odata.null return values?

I'm using @pnp in my SPFX project, and I need to get tenant property. The code is as followed: sp.web.getStorageEntity('mytenantproperty1') .then((prop: StorageEntity) => { //How do I ...
0
votes
1answer
230 views

SPFx - PnP Js : Setting value of a custom user profile property

I am working on building a webpart using SPFx. I need to access userprofile service to set value to a custom user profile property. I am using PnP Js to achieve this. I found here that there is a ...
0
votes
1answer
122 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" ?&...
1
vote
1answer
49 views

CommunicationSiteCollectionCreationInformation class in OfficeDevPnP.Core.Sites

I have console application. I am referencing the library OfficeDevPnP.Core. I updated to the latest package using NuGet manager. Latest assembly version is 2.28.1807. As soon as I updated latest ...
1
vote
1answer
256 views

Can I get a list/library's Relative URL using PnP when I have its ID?

I tried grabbing it by calling web.lists.getById([THE ID]).get() but the relative server URL was not in the payload. Is there another method I should use or is there a REST endpoint that provides ...
3
votes
3answers
159 views

PnPJS with on-prem sharepoint?

Is it possible to use https://github.com/pnp/pnpjs with on-premise SharePoint with an external NodeJS application? Installing web parts is not an option I must perform read-only access. If so, what ...
0
votes
1answer
35 views

SharePoint Content Editor not displaying PnPJS Code

I want to be able to display my PnPJS code and make it show up within the Content Editor, but I am having trouble pulling the data in and displaying it. Here is what I have so far: 1.) I made a ...
3
votes
1answer
88 views

Set Userfield to allow Multiple using pnp in SharePoint Framework

I've Created a Field on my list PollAnswers and everything works fine with that part: pnp.sp.web.lists.getByTitle("PollAnswers").fields. addUser("Users", FieldUserSelectionMode.PeopleOnly).then(() =&...
1
vote
1answer
457 views

Connect-PnPOnline forbidden 403 powershell

I am using the PnP modules to connect to a sharepoint site and retrieve its subsites and the lists within them. However when i try to use the below command it throws (403) forbidden error. #Variables ...
0
votes
1answer
123 views

How to deploy display templates with pnp?

On SP 2016 on-prem I am trying to write a console application to upload files, mainly display templates. I create a dummy site collection, and upload display template in "_catalogs/display templates/...
0
votes
1answer
40 views

PnP Provisioning Engine - Canvas Column for Multi Column Modern Page

I have a Modern Page that utilises 1 section with 6 columns (factor is 2 for each). There is one webpart per column. When extracting the template, the 6 canvas controls are all placed into 1 Sections ...
0
votes
2answers
64 views

How to store credentials for scheduled CSOM console app

I am developing a console app that will be deployed as an azure webjob. The plan is to have it run daily, without user intervention. I am using the PNP timer job framework, and according to their ...
1
vote
0answers
16 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 ...
3
votes
1answer
102 views

How to configure SPO to do app-only auth with PFX private key?

We are trying to set up SharePoint online app-only access. We are writing a C# application using https://github.com/SharePoint/PnP-Sites-Core The first thing we did was we (successfully) tested this ...
1
vote
1answer
261 views

Trying to update Managed metadata column value in sharepoint library using pnp js

pnp.sp.web.lists.getByTitle("ListName").items.getById(1).update({ Title: Title, DeptDiv://internal name of list column { __metadata: { "type": "SP.Taxonomy....
0
votes
0answers
58 views

Using SPFx PnP, KnockOutJS and getting errors from SharePoint Online rest api when updating a date field

The date ("01/01/2018") string works fine when I use PnP to add a list entry. But when I retrieve the date ("2018-01-01T06:00:00Z") string from SharePoint Online and format it back to ("01/01/2018") ...
0
votes
0answers
13 views

Add item in all subsites

I want to add some items to my list which is duplicated in my 250 subssites! I used PNP Provisioning Schema to create the list. there are a solution to add an item to this lists Please?
0
votes
0answers
25 views

List of items into dictionary using Linq

I have list of SharePoint ListItems. Some of those items have the same "Title" but a different "Status" (a custom text column). I would like to create a dictionary with the "Title" column as Key and ...
0
votes
1answer
112 views

How to specify sharing link type via csom?

It's pretty easy to share document: string link = context.Web.CreateAnonymousLinkForDocument("https://tenantname.sharepoint.com/Documents/sample.docx",ExternalSharingDocumentOption.View); ...
1
vote
1answer
341 views

Add-PnPView - Show all items inside folder

I'm having an issue with creating a view on SP Online for a list to show all items inside folders. I can create the view with the filtering, but the option for the folders is not working. $viewQuery =...
1
vote
0answers
403 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 ...
0
votes
1answer
145 views

Remote event receiver not firing (SharePoint Online)

I have downloaded the PnP sample project ECM.AutoTagging and have configured an azure service bus for debugging, have created new client id/token and updated the app manifest/web.config and so on. I ...
0
votes
1answer
362 views

Pnp provisioning a sharepoint list

I am new to PnP. I have an existing site collection in SharePoint Online, however I want to add site columns and create new custom lists in it through template.xml. I do not want to change anything ...
0
votes
1answer
150 views

Need help with url and rollup image fields in sitepages using SPFX with REST

I'm new to SPFX and still trying to find my way around. At the moment I'm struggling to access particular fields from site pages using REST. I realize this is a n00b request, but any help would be ...
0
votes
0answers
117 views

Can't create a new team site inside organization with Chinese region

So I try to create a new team site in an organization with Chinese region. And my(code c# or powershell) gives me the same error New-PnPSite : {"d":{"CreateGroupEx":{"__metadata":{"type":"Microsoft....
0
votes
1answer
110 views

How to get all modified wiki pages after specifc date inside a PNP script

I have the following powershell which I use to loop through a wiki page library inside my On-Premise site, and filter out all the wiki pages which have been modified after a certain date: $startdate =...
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 ...
2
votes
2answers
744 views

SharePoint PnP Powershell - How to provision sub webs with unique permissions and default groups?

I've used the PnP Site provisioning method to create a sub web with unique permissions. However, when applying an XML site template with the default visitors, members, and owners security group ...