Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

We have developed a SharePoint Framework (SPFx) application for customizations and are using @pnp/sp to perform GET/POST operations on SharePoint lists. Our system sends email notifications through ...
thedeepponkiya's user avatar
0 votes
1 answer
29 views

I'm trying to fetch the live title of a SharePoint Online site using the REST API, but it keeps returning the old title even though the site title was updated hours ago. Here’s my current code: export ...
Mike Bartels's user avatar
1 vote
1 answer
73 views

I want to implement pagination in my spfx webpart to show filtered list items. My list is having more than 5000 items, the filtered items may or may not be more than 5000. On each page i want to show ...
user2889674's user avatar
1 vote
1 answer
95 views

I've made application SPFx with React. It's working when I enter the page where is the app. But when I refresh the page or go to the preview, I'm getting error: caught (in promise) TypeError: Cannot ...
Timaz69's user avatar
  • 11
0 votes
1 answer
105 views

in @pnp/spfx-controls-react/lib/PeoplePicker control when i select one user that control return object but when i edit manage content selected user not display in peoplepiker control i need object of ...
Deep Ponkiya's user avatar
0 votes
1 answer
257 views

There are many ways for provisioning columns and content types in SharePoint Online. One could use Site Templates and Scripts, PnP Provisioning, create them via Code/PowerShell or just use the ...
devil_inside's user avatar
0 votes
1 answer
276 views

We have lots of sites and files in SPO In an SPFx webpart, I need to warn the user about a certain file being open by any user. I use PnP/JS getLockedByUser() function of IFIle type to get the current ...
Ofer Gal's user avatar
  • 903
0 votes
1 answer
867 views

I am working on a SharePoint Framework (SPFx) project and I'm having trouble determining the correct versions of SPFx, PnPjs, and @pnp/spfx-controls-react to use together. Specifically, fir the ...
Agni200895's user avatar
0 votes
1 answer
73 views

I am using the PnP icon picker in a react web site. Is it possible to simulate the selection of an icon in a Jest unit test with this component? It seems not... This is the Icon Picker: <IconPicker ...
andré marquis's user avatar
2 votes
1 answer
396 views

I have a written a class component in SPFx with the pnp/js framework and React.js. I need to transform it to a functional component in react. I'm struggeling to call my SharePoint lists now. I have a ...
Matthias's user avatar
0 votes
0 answers
73 views

I will start with the images: First the view is the colored tiles. what I want is when I click on a Tile, it has to redirect our sharepoint online to page to another page. The Url comes from the ...
Jake The Thug's user avatar
1 vote
1 answer
597 views

I have a folder with documents and a SharePoint listView extension. I want to be able to retrieve the Document ID's after selecting documents in the folder in order to perform Graph API requests with ...
Arthur's user avatar
  • 11
0 votes
2 answers
670 views

I have a requirement to add sensitivity label to document libraries of multiple site collections. I found below PnP PowerShell Command as per https://pnp.github.io/powershell/cmdlets/Set-PnPList.html ...
Rakesh Ranjan's user avatar
0 votes
1 answer
188 views

I've created a Teams webpart (hosted in Teams). I'm using an sp/pnp people picker to allow the users to choose a person. I want to submit this to a separate SharePoint site (not the one behind the ...
NightTom's user avatar
  • 485
1 vote
2 answers
761 views

New to pnpjs, using 8.15.0 trying to get a list of lists in a SPFx. I'm getting error: TypeError: this.sp.web.lists.get is not a function. I have list item updates working in this same ts file. ...
Joe Johnston's user avatar
  • 2,976
0 votes
1 answer
59 views

We are investigating using SharePoint, SP, Word Automation Services, WAS, on demand to render Table of Contents, ToCs in word documents we are generating, prior to sending them to a third party vendor....
GB1's user avatar
  • 41
1 vote
1 answer
1k views

I am working on a new web part to display a list of files in a SharePoint document library called Medicine files. I want users to be able to filter the files based on different columns, including file ...
Mehri Golchin's user avatar
0 votes
1 answer
575 views

I need to create folder under Site Pages library under SharePoint Online site. I have tried to create the folder programmatically using @pnp/sp library. But it thrown me Access Denied error. New ...
user avatar
0 votes
0 answers
103 views

I would like to provision a SharePoint Site and Lists from the Microsoft Teams Personal App. I know that can be done if used as channel app. But my requirement is to provision site/subsite from the ...
Sigar Dave's user avatar
  • 2,648
0 votes
1 answer
542 views

While we are create list and list columns using pnp/sp. Why some of the columns are not created in one go? We need to run again then it will created. Please help me to resolve this issue. I have used ...
Hiren Changela's user avatar
0 votes
1 answer
477 views

I use PnPJS within an REST API route like this: pnp.sp.web.lists.getByTitle("t").reserveListItemId().then(v => { pnp.sp.web.lists.getByTitle("t").items.add({ ID: v, ...
javad daryabari's user avatar
1 vote
1 answer
1k views

Currently I'm trying to get some information of the publishing state of a given page. Maybe anybody has an idea for this issue. Thanks in advance To get information about the page I use pnpjs to ...
ThomasP's user avatar
  • 35
0 votes
1 answer
482 views

My Code: try{ if (file.size <= 1048) { result = await sp.web.lists .getByTitle(documentLibraryTitle) .rootFolder.files.addUsingPath(fileNamePath, file, { Overwrite: false }); } ...
MomoCodez 's user avatar
1 vote
1 answer
1k views

I'm trying to get items from large lists using pnpjs/sp I created a promise like this: try { // const sp = spfi(); const sp = spfi().using(DefaultInit(), DefaultHeaders(), BrowserFetchWithRetry(), ...
Eldrad95's user avatar
0 votes
0 answers
870 views

I need the users to be able to upload attachments. then i need to display the attachment so it can be selected and viewed. sometimes there may only be a single attachment. sometimes multiple. file ...
some_new_dev_dude's user avatar