Questions tagged [pnp-js-core]

The tag has no usage guidance.

26 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
3
votes
2answers
545 views

Frequent sites on SharePoint Online Home Page

Is there a way I can have "Frequent sites" on my website? Is this a webpart or SpFx component that I can add to any of my existing site? I would like below into my own site page. Digging bit more I ...
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!
2
votes
0answers
141 views

PnP JS cross domain calls?

Does PnPJS have a way to make a cross domain call to a site collection? Trying to get data from another SharePoint site that I believe is on another web app and a different domain. This is SP2013
2
votes
0answers
53 views

I need to get all properties of taxonomy termstrore. which I already get are “Label”,“WSSId”,“TermGuid” but I need to get Other labels as well

Is there any solution to get other properties for taxonomy termstore. As I remember, I usually used "include" to get all properties which I mentioned in JSOM. But now I need to work by using ...
2
votes
0answers
123 views

Dynamic update Icon in SPFX client Web Part

I am using office ui frabric details list to display documents on spfx client web part from here. Now, I want to implement check-in/check-out icons to be displayed on spfx client web part dynamically ...
1
vote
0answers
39 views

Make multiple File Upload with their respective fields using PNP JS

I have a picture library with 4-5 fields - Lets Take - Title(string), Date(Date), FlagOn(Boolean). I am trying to upload 10 files to my picture library and for all these 10 files i want the same ...
1
vote
1answer
224 views

Get documents thumbnail using pnp-js-core or rest api

How can I get documents thumbnail using pnp-js-core or rest api. I need to render a document card with its thumbnail. Thanks.
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://...
1
vote
1answer
189 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 ...
0
votes
1answer
37 views

Email is not sending pnpjs in sharepoint online

I want to send mail to some users. But when i call send mail method, it shows no errors. but email not send.here is my code. public emailProps: EmailProperties = { To: ["abc@...
0
votes
0answers
17 views

PnP JS Core : Uncaught (in promise): TypeError: Cannot read property of undefined

I am using PnP js in one of my angular 6 project. I have a function which is defined in the Component, but I am getting this error at run-time when calling from inside the success of PnP SP js: ...
0
votes
1answer
27 views

Not able to get the Category from calendar event

I am using a SPFx react web-part to get the events from calendar. I am expanding the calendar events however could not able to get the Category column. Here is the code I am using: public ...
0
votes
1answer
28 views

How use result of pnp response

I use PnP for getting SharePoint list item. But I don't really know, how use the result of my function. I wish to get items of my SharePoint list using PnP and assign it to my list. My code don't ...
0
votes
2answers
79 views

SharePoint Multiselect Choice field Saving using PnPjs

I want to save multi-select drop-down in SharePoint field. I already referred few results in this site. Choice values in SharePoint : Test1, Test2, Test3, Test4, Test5. From the custom drop-down ...
0
votes
0answers
21 views

Requesting files in paged order of name from SharePoint Library using pnp js

I am currently developing a web part that displays files in a document library in a table ordered by File name, If this were a standard list I could use pnp js to OrderBy 'Title' but as the 'Title' ...
0
votes
2answers
429 views

Cant get List items when list item count gets over 5000

As the title says, I am using pnp js in a SharePoint online list: here is my code: let list = sp.web.lists.getByTitle("Resource Projection"); let query = `Quarter_x0020_Num eq ${currentQ} and ...
0
votes
0answers
56 views

Get multiple attachments from SharePoint list using pnp.js

I want to get all the added attachments from the SharePoint list using pnp.js and show those attachments in to a custom page div. I have to use pnp.js to get the attachments. Could you please help ...
0
votes
1answer
30 views

SharePoint Online Search

How could I filter by range in a managed property of type number in a sharepoint search? I'm using pnp-js-core Thanks so much.
0
votes
0answers
46 views

List get does not return items

Beginner with sp js api here. $pnp.sp.crossDomainWeb(addinweb, hostweb).lists.getByTitle("Sites").items.get().then(function(result) { console.log(result); }); I can see it does ...
0
votes
0answers
245 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
1answer
293 views

pnp/sp how to return user information after creating a list item?

I am creating an SPFX webpart and i have to call pnp/sp to check if a list item exist and if it isn't i will create a new list item. this is my code for creating a new list item: return sp.web.lists....
0
votes
0answers
168 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 ...
0
votes
0answers
260 views

SPFx:: pnp js :: Delete selected file from client web part using Reactjs

I have a SPFx client web part with documents from library. Now when I select item/row, I need to perform different operations like Delete/Check-in/Check-out based on the button events. I need to ...
0
votes
1answer
1k views

How to get all Users to populate a People Picker Control using PnP JS Core (SharePoint Online/ SharePoint 2016)

Can I use PnP JS library to get all Users to populate a People Picker Control ? Regards, Arioule
0
votes
0answers
913 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"], ...