Questions tagged [pnp-js-core]

The tag has no usage guidance.

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

download file from document library by the help of item ID

How is it possible to download file from document library by the help of item ID? In my data I have only item ID of a file which was uploaded to document library now I want to download the file i.e ...
0
votes
1answer
730 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 ...
0
votes
1answer
282 views

Sharepoint Framework/PnP-JS/React : state Object doesnt work

I have created a property (age) in the state Object. However, I can not access this property in my code. I am getting an Error Message: Property 'age' does not exist on type '{} Here below is my ...
1
vote
1answer
970 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 ...
-3
votes
1answer
740 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 ...
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
1answer
969 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
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
755 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
403 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
826 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 ...
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!
4
votes
2answers
455 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 ...
4
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
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('...
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 ...
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
308 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....
0
votes
0answers
888 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
622 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
443 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://...
1
vote
1answer
179 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
847 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 ...
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!