Questions tagged [pnp-js-core]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
746 views

Sharepoint Framework/PnP-JS/React : How to set a Class Property Value from a callback function

import { Web } from "sp-pnp-js"; import pnp from "sp-pnp-js"; interface ISPVehicule { Title: string; Marque: string; Modele: string; Vitesse: string; Poid: string; } export default ...
-3
votes
1answer
749 views

How to access to SharePoint Objects (List, ListItem, User, ect) using React and PnP-JS Core with SharePoint FrameWork (SharePoint 2016)

I would like to create a WebPart using react and PnP-JS Core with sharepoint framework capable to access SharePoint Objects (such Lists, ListItems, Users, Groups, ect ) in the site where it is ...
1
vote
1answer
1k views

Is it possible to Update SharePoint user field in Rest API with Email?

Is it possible to Save/Update User Field in SharePoint Rest API using email Addresses instead of USERID. Because in order to save 20 users i need to make 20 rest calls to get Userid is there any ...
6
votes
1answer
1k views

How to perform CRUD Operations on sharepoint lists using React and PnP-JS Core with SharePoint FrameWork (SharePoint 2016)

I would like to create forms using react and PnP-JS Core with sharepointframework to perform CRUD Operations on sharepoint lists. Do you have any simple examples I can look at and test on SharePoint ...
4
votes
2answers
2k views

Insert multiple users and groups in a user field of a Sharepoint Online list using Pnp-Js-Core

How can I insert multiple users and groups in a user field of a Sharepoint Online list using Pnp-Js-Core? greetings and thanks.
0
votes
1answer
51 views

GetSelectedItemIds using pnp.js.core

In JSOM we have a method called SP.ListOperation.Selection.getSelectedItems() How do I do this using pnp.js.core?
0
votes
1answer
787 views

Delete documents in a document library with pnp-js-core

How can I delete a document in a document library with Pnp-Js-Core, but I need the registry to be stored in the recycle bin. Thanks.
2
votes
1answer
408 views

SPFX - PnP JS Core for SPFx On-Premise v1.0.2

I want to use PnP JS Core in SPFx v1.0.2 React webpart for SP16 On-premise server . What is the version of pnp need to use and how to install it? What are the other options for accessing data in ...
0
votes
1answer
847 views

Sharepoint Online Search - PnP-Js-Core

I'm doing a SharePoint search and I need specifically select Title field, but, some times the result is the title of the document and not the Title field of the library or list I'm using PnP-Js-Core ...
3
votes
2answers
3k 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
1k 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
4k 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!
5
votes
2answers
3k 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
7k 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
319 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
3k 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
461 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
914 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
629 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
7k 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 ...
1
vote
1answer
453 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
1k 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
191 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
866 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
2k 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
271 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!