151 questions
0
votes
0
answers
12
views
How can we retrieve the flows associated with a specific list from the current site?
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 ...
0
votes
1
answer
29
views
SharePoint REST API returns old site title for group-connected site even after update
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 ...
1
vote
1
answer
73
views
How to get total item count of filtered items from sharepoint list using PnP js
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 ...
1
vote
1
answer
95
views
SPFX v1.9 - TypeError: Cannot read properties of undefined (reading 'web')
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 ...
0
votes
1
answer
105
views
@pnp/spfx-controls-react/lib/PeoplePicker control return only one value at a time i need object of username and email
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 ...
0
votes
1
answer
257
views
Best way for provisioning Content Types and Columns in SharePoint Online
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 ...
0
votes
1
answer
276
views
Who has file open in SharePoint
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 ...
0
votes
1
answer
867
views
Which versions of SPFx, PnPjs, and @pnp/spfx-controls-react should be used together?
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 ...
0
votes
1
answer
73
views
How to simulate choosing an icon from the PnP Icon Picker in a Jest unit test?
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 ...
2
votes
1
answer
396
views
How to transform a class component to a functional component in SPFx React.js and get value from a SharePoint list
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 ...
0
votes
0
answers
73
views
When clicking on Tile, I want the sharepointpage to be redirected to a new sharepointpage, which url comes from the Hyperlinkcolumn Lien. How?
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 ...
1
vote
1
answer
597
views
How to get the document ID's from the selected documents in SPFx listView extension?
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 ...
0
votes
2
answers
670
views
Trying to use Set-PnPList -Identity "TestLib" -DefaultSensitivityLabelForLibrary "Restricted" to set sensitivity label to SharePoint Document Library
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
...
0
votes
1
answer
188
views
How to submit people picker value from Teams to SharePoint
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 ...
1
vote
2
answers
761
views
Using pnpjs 8.15 in SPFx - get() is not a function
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. ...
0
votes
1
answer
59
views
Accessing Word Automation Services using pnpjs
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....
1
vote
1
answer
1k
views
PnPjs: Filtering SharePoint document library by file name results in errors
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 ...
0
votes
1
answer
575
views
Enable the "Make "New Folder" command available?" option with Sharepoint using @pnp/sp
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 ...
0
votes
0
answers
103
views
Provisioning of SharePoint Site and Lists from the MS Teams Personal App
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 ...
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?
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 ...
0
votes
1
answer
477
views
Pnp.js Access to sub site
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,
...
1
vote
1
answer
1k
views
How to get the publishing state of a given page?
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 ...
0
votes
1
answer
482
views
PnP JS handle error if case "overwrite: false" enters
My Code:
try{
if (file.size <= 1048) {
result = await sp.web.lists
.getByTitle(documentLibraryTitle)
.rootFolder.files.addUsingPath(fileNamePath, file, { Overwrite: false });
}
...
1
vote
1
answer
1k
views
pnpjs get sharepoint items by view issue
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(), ...
0
votes
0
answers
870
views
How to properly upload multiple attachments to sharepoint using pnpjs?
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 ...