PnP-JS-Core | Code moved to https : //github | Content Management System library
kandi X-RAY | PnP-JS-Core Summary
kandi X-RAY | PnP-JS-Core Summary
Code moved to https://github.com/pnp/pnpjs. This repository is archived.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PnP-JS-Core
PnP-JS-Core Key Features
PnP-JS-Core Examples and Code Snippets
Community Discussions
Trending Discussions on PnP-JS-Core
QUESTION
I'm creating a web app that allows the user to update their status and location.
I have a data list table on SharePoint with the user's name, email address, status (for example: online, offline, or busy), location (which is a select field), along with other fields.
The web app is just 2 different select fields. Which allows the user to update his status and location.
When the user accesses the page on componentDidMount()
I'm getting the user's email addresses (since he's logged into SharePoint) and then filtering the data list array to view the element for his information (so looking for his email address in the MyList
. The part I'm stuck at now is updating the MyList
list with the selected response that the user selected.
Using PnP-JS i found this should be possible here are two links showing the update()
function.
https://github.com/SharePoint/PnP-JS-Core/wiki/Basic--Operations
https://github.com/SharePoint/PnP-JS-Core/wiki/Working-With:-Items
My code found here:
...ANSWER
Answered 2020-Mar-16 at 15:02First of all, instead of getting all items in the List, and then filtering for the current user, you should get only the item(s) for the current user to begin with. Once you list gets large, you would be performing a lot of overhead by retrieving all items.
Secondly, and what you allude to in your comments, is that you need to specify the ID of the item to update. So, in your componentDidMount
, after you get the List Item for the current user, save that Item in your state.
QUESTION
I need to get the URL of each individual files in a SharePoint library (Case Documents). At the moment I'm using:
...ANSWER
Answered 2020-Mar-06 at 10:13You can even compose the URL by yourself.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PnP-JS-Core
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page