Stack Exchange Network

Stack Exchange network consists of 175 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
19 views

@pnp/sp - send email function returns 404

Just wondering if I could get some help. I built a small webpart that sends an email. On my local workbench it works fine however when I deploy to production Error: Error making HttpClient request ...
-1
votes
0answers
22 views

Powershell pnp for copying all site assets libraries

Need to build a script that copies all site assets libraries from a given on-premise site collection to online site using Powershell PnP. Please help! I am new to Powershell PnP. Need all the site ...
0
votes
1answer
23 views

New-PnPTerm : Specified argument was out of the range of valid values

I want to create a new term using PnP for our sharepoint online tenant, so i tried this PnP script:- PS C:\Windows> Connect-PnPOnline -Url https://****-admin.sharepoint.com PS C:\Windows> New-...
1
vote
2answers
42 views

Migrate a term from sharepoint on-premises to sharepoint online, to have same name & GUID

I have 2 farms sharepoint on-premises 2013 & sharepoint online. where we use to have a license for a third part migration tool, and we have migrated around 70% of the sites, but still the ...
1
vote
1answer
21 views

How to test PNP using JEST?

Is there any way to mock the context of the webpart since i need it to be able to make a request through pnp ?
0
votes
0answers
24 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
1answer
30 views

When fetching list's items the link of title column is missing

I wrote a spfx web part using sp-pnp-js to fetch items from a list, this is my query to the list: public async getAgreements(): Promise<Agreement[]> { let select = '*'; let Agreements:...
1
vote
1answer
49 views

Update a site column Display name using PnP, to allow me to use existing Display Name

I am working on sharepoint online classic team site and i created a new site column using the site columns UI, as follow:- where the site column gets its display name and internal name as "...
0
votes
1answer
20 views

Set defaultvalue of sp-pnp-js created boolean field

I'm unable to set the default value to false of my boolean field called Done pnp.sp.web.lists.add("Todo","").then(() => { pnp.sp.web.lists.getByTitle("Todo").fields.add("Done","SP.FieldText",{ ...
1
vote
1answer
67 views

Can I use PnP PowerShell to set Conditional Access Policy on individual sites?

Using SharePoint Online Management Shell and Set-SPOSite I can set the Conditional Access Policy on individual OneDrive sites. Is it possible to do the same thing with PnP PowerShell? I can only find ...
0
votes
0answers
39 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 ...
1
vote
1answer
28 views

PnPjs alternatives for .NET

For developing with the SharePoint REST APIs using JavaScript I always use PnPjs because it's an easy way of getting data from SP. PnPjs is a collection of fluent libraries for consuming SharePoint,...
0
votes
1answer
19 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
0answers
18 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
2answers
63 views

How to clear Office-ui-fabric-react fields after object has been added to list?

I have a simple list that gathers info from two text fields, a drop down and a people picker. I am able to submit to my custom list. I have set the state back to the defaultValue, which I have defined ...
2
votes
2answers
59 views

Pnp powershell asking credentials again and again

In PnP PowerShell for SharePoint 2013 site, how to give credentials only once, so that it will not ask credentials again while connecting to different site collections coming from a CSV file input. ...
0
votes
0answers
15 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 ...
2
votes
1answer
39 views

Get User's Time Zone using PnPJs

We are trying to retreive current user's profile Time Zone SPS-TimeZone from a SharePoint Framework webpart, but we are faicing an error (see below). Does anyone know about the best/most effecient way ...
1
vote
1answer
38 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/...
0
votes
0answers
16 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
1answer
78 views

Retrieve column value (page property) by site ID from Site Pages list

apologies for the likely silly question, but I've been unable to find an answer that makes sense, or at least one that marries up with my understanding of the SP terminology. I'm trying to get access ...
0
votes
0answers
32 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
1answer
38 views

Ajax is being called in Chrome but not IE

I'm using Ajax calls to pull in data for a table and I have successfully been able to pull in data for Chrome and everything shows up perfectly fine, but my table is not wanting to show up in IE at ...
0
votes
0answers
21 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
0answers
42 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 ...
0
votes
1answer
73 views

Error while creating list item with multi-user field - pnp js / spfx

In my spfx webpart, I'm creating list item using pnp js. As per pnp-core-js documentation I have written following code, but its failing with error. Private AddListItem() { pnp.sp.web.lists....
0
votes
2answers
107 views

Can i using PnP script Update our custom list items “Status” field without affecting the ModifiedBy and Modifed fields

we have a sharepoint online classic team site. and inside the classic team site, we have a custom list titled "Project Management" which have a custom drop down field named "ProjectStatus", which have ...
2
votes
1answer
49 views

Did Microsoft eliminate the PnP Template Gallery or has it moved?

I found this post from 2016: https://developer.microsoft.com/en-us/office/blogs/pnp-templates-gallery-open-source-provisioning-templates/ “At Microsoft Ignite 2016, in Atlanta, we proudly announced ...
5
votes
1answer
31 views

Is it viable to manage a SharePoint Online site via PnP templates in source control with automated deployments?

I am trying to gain some traction on a new SPO project and it's been indicated to me that they want to maintain the site programmatically with PnP templates (XML files basically). The idea is that we ...
3
votes
1answer
96 views

SharePoint List to HTML Table to TableExport.js

I'm using the TableExport.js API and PNP.js to pull data from a SharePoint list and display it on a Webpage and then have the options to export it into a Excel/CSV/Txt file. Homepage: Shows the ...
4
votes
1answer
53 views

Unable to pull in Number/Lookup Columns using pnp.js

I'm pulling in data from a SharePoint list and I'm having some issues pulling in certain columns. I was able to successfully pull in the 'Title' column which is a single line of text, but 'Rank' and '...
0
votes
1answer
123 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 ...
1
vote
1answer
94 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
142 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
17 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
23 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
21 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
97 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
77 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
2answers
176 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
158 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
16 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
70 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
284 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 / ...
5
votes
1answer
204 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
326 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
75 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
62 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
326 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
28 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