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-js-core]

The tag has no usage guidance.

3
votes
1answer
2k views

pnp.sp.site.getWebUrlFromPageUrl method is returning wrong web URL

I am using sp-pnp-js for my spfx project. GetWebUrlFromPageUrl method is returning wrong URL that includes sitePages also. Please refer: my current page location is https://xxxx.sharepoint.com/sites/...
4
votes
1answer
858 views

SharePoint search refinements filters PnP-JS-Core 2.0.7

How can I add multiple refinements filters to Sharepoint search, using PnP-JS-Core 2.0.7 Thanks
1
vote
2answers
3k views

Sharepoint Online upload files to library with PnP-JS-Core 2.0.7

How do I upload a file with all properties or fields values to a sharepoint library? I'm using PnP-JS-Core 2.0.7 Thanks!
4
votes
2answers
2k views

SPFx - PnP-JS-Core - Check if list exist in current web

I want to check if list(by Display Name) exist in current web. In pnp developer guide is no information on how to work with lists? I need this for validate web property and i want to use pnp-core-...
3
votes
1answer
6k views

SPFx - How to get current user properties with PnP-JS-Core [duplicate]

I want to get current user login name with PnP-Core-Library for SPFx in Office365. My page is modern Page аnd I can not use it _spContextPageInfo How to do this?
2
votes
1answer
281 views

Is it possible to set the decimals on a Number field?

I'm trying to update number fields to hold only 1 decimal place but I can't seem to do this through REST. I tried Pnp Js but it's not working, there's no error, it just doesn't update: pnp.sp.web....
3
votes
2answers
2k views

How to make Pnp function async in spfx framework

I need to get data from a function as below. GetServiceListData():any { var resultData; pnp.sp.web.lists.getByTitle('Test').items.select('Title,FullName,DOJ,ManagerName/Title').expand('...
4
votes
2answers
427 views

CSR jquery append not working on list items after async query

Hello i got some trouble displaying some icons inside a column using CSR, what it should do is to check for the contents inside a document set and if the content is equal to a content type and add a ...
0
votes
0answers
832 views

SPFx - Template for email with PnP Core Library

With SharePoint Framework I use PnP Core Library to send mail to another user: import pnp, { EmailProperties } from "sp-pnp-js"; const emailProps: EmailProperties = { To: ["user@site.com"], ...
2
votes
1answer
560 views

Update SharePoint Group Owner

I'm trying to update the Owner of a SP Group. This is what I've tried: import pnp from "pnp"; let newgroup = {}; pnp.sp.web.siteGroups.getByName("BA_Actuarial").get().then(function(g) { ...
1
vote
1answer
6k views

Sharepoint rest GetFileByServerRelativeUrl returns wrong results

So I have a document library at https://tenant.sharepoint.com/sites/Test/Documents/ and I have a document in it called Doc1.docx. It has an Item Id of 1. I use the following rest call in a browser ...
0
votes
1answer
395 views

Trying to access a list from another web application, but getting an error 401 (Unauthorized)

I'm a Sharepoint beginner, I'm trying to access a list which is in another site collection under another web application in the same farm. I'm working with pnp core js library. new pnp.Web("http://...
4
votes
2answers
961 views

Asynchrounously load lookup column values in an SPFX/PNP-JS-CORE editform

I'm working on a spfx app to be used as a SharePoint list form. The app will be used to edit ha a LOT of lookup columns. the lookup columns are rendered as dropdowns in the react component. I am ...
1
vote
1answer
152 views

Batch operation not following order

I've written a function using pnp-js-core to batch checkout, update and checkin selected items. Problem I'm seeing however is that it seems that by the time the first map is called the next one ...
2
votes
1answer
781 views

reference tenant site in config.json

I am working in deploying my first spfx webpart to production. I an testing it on my personal dev tenant first. I am hosting all my assets in a separate site collection called cdn (in both my ...
1
vote
1answer
1k views

How to update a metadata list field using PnP

I'm trying to update a list item field that is Managed metadata field using PnP-JS-Core. First I was getting this error: pnp.min.js:10 Uncaught (in promise) TypeError: Converting circular structure ...
3
votes
1answer
1k views

PnP-JS-Core Property bags

Is there a way to get the property bags using PnP-JS-Core? There is nothing about it in the documentation or blogs that I've found in google. Using REST the call is: http://sitecollection/site/_api/...
3
votes
2answers
258 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!