Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [pnp]

The Offive Dev PnP is an open-source, community-driven initiative coordinated by SharePoint engineering. PnP includes development documentation, samples, reusable controls, and other relevant open-source initiatives related to SharePoint development that are closely involved with SharePoint engineering, but are not part of the official standard product or service offerings.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Drawbacks and disadvantageous of setting "DisableCustomAppAuthentication to false" inside our tenant

We have a lot of .net console applications which run inside windows on-premises servers, which connect to SharePoint online using ClientID & ClientSecret and perform some background tasks, as ...
user avatar
  • 2,234
0 votes
0 answers
17 views

What are the approaches we have to move content types and their fields from test to production

We have 2 SharePoint online tenants, Test and Production. and we have some content types (which have columns) inside the Test tenant that we want to move to the production. so what are the available ...
user avatar
  • 2,234
0 votes
1 answer
20 views

Can we convert classic pages (Wiki pages and Publishing pages) into modern pages during migration from SharePoint 2010 to SharePoint Online

We want to migrate SharePoint 2010 sites into SharePoint Online and we are going to use ShareGate Migration tool. But we are not sure if the tool (or other migration tools) do support automatically ...
user avatar
  • 2,234
0 votes
0 answers
11 views

I want to filter the results of a RefinableString00 only to values which are not null in PNP Search

I use the pnp search webpart. I tried to filter my refinableString00 to all values which are not not null. I didn't make it work so far. Everytime I filter on null. I get nothing back. I hope you can ...
user avatar
0 votes
1 answer
40 views

How to implement or customize Fluent UI in the PnP modern web part search v4

I am using PnP Modern Search Results (v4) to get Local People Results (LocalPeopleResults) in sharepoint. I want to customize "Edit results template". I want to customize it with Fluent UI. ...
user avatar
0 votes
0 answers
14 views

PeoplePicker mismatching SharePoint IDs

I'm using people picker for a web part. However the ID's are mismatched. When I chose Adele Vance on my people picker (ID 12) and save, it stores it in the list as SG1 (one group I have on my AD). My ...
user avatar
0 votes
1 answer
37 views

PowerShell to get any Custom lists and Libraries in a site

Looking to obtain a list of any generic lists or libraries that have been created by users in a Site (exclude any OOTB, hidden or system lists.) have tried filtering on various list properties via ...
user avatar
  • 1
0 votes
1 answer
78 views

Creating an external sharing report programatically

I need to create a report detailing external users and what they have access to on SharePoint sites. I suspect exactly like this: https://docs.microsoft.com/en-us/sharepoint/sharing-reports I need to ...
user avatar
  • 13
0 votes
2 answers
41 views

Using custom Search Properties in PNP Search SharePoint Online

I have a list with some values, which I need to be searchable. One field is a lookup field, which shows the status of a project. The values are stored in another list (running, on hold and completed). ...
user avatar
0 votes
1 answer
138 views

Error "Token request failed" when connecting to SharePoint site via PnP.Framework

New console application on .NET Framework 4.8 with latest PnP.Framework pack. Code as follows: string siteUrl = "https://site.sharepoint.com/sites/DigitalInitiativePublicRelations"; string ...
user avatar
  • 13
0 votes
1 answer
88 views

How to retrieve lookup field value in Pnp Core in c#

I am using the Pnp Core library 1.5.0 (https://github.com/pnp/pnpcore) trying to read a lookup value in a sharepoint list. var listNameBookings = "Bookings"; var itemsBookings = await ...
user avatar
  • 258
0 votes
0 answers
12 views

How to update default SharePoint site groups using PnP provisioning template?

I have tried with the below XML but it is not working <pnp:Security AssociatedOwnerGroup="Site Owners" AssociatedMemberGroup="Site Members" AssociatedVisitorGroup="Site ...
user avatar
0 votes
1 answer
31 views

Can I use a Claim variable and pass it into CSOM or PnP calls?

In my asp.net Core webapp, I'm putting the following into Startup.cs: public void ConfigureServices(IServiceCollection services) { services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)...
user avatar
0 votes
1 answer
32 views

Search not returning complete results from list

I have a list with the following columns: Title ContactID ContactForename ContactSurname ContactAddress ContactDOB ContactAge ContactGender I also have a Search page which is using the V4 PNP Modern ...
user avatar
  • 763
0 votes
0 answers
12 views

Mapping On-Prem Content Editor to ReactJS Modern Script In SPOnline (PnP Modernization Tool)

I want to map all on-prem content editor to modern react-js script editor in SP Online without analyzing the content of it. The reason is that if my content editor is having only html tags and images, ...
user avatar
  • 1
0 votes
1 answer
9 views

Is it possible to use CSOM powershell and pnpsharepoint2013 from desktop?

Environment: SharePoint 2013 Do I need to be on the SharePoint Servers in order to run CSOM and pnp from desktop PC? Can anyone please suggest and a good link. I tried and it's not working. Kayla
user avatar
  • 15
0 votes
1 answer
59 views

PnP modern search v3 - customizing the handlebars Cards/Tiles template in search results web part

I copied the Tiles template, added html and handlebars field objects and selected the custom layout option. All the data is there but the display keeps bouncing between the correct view and a broken ...
user avatar
  • 569
0 votes
0 answers
18 views

How to install apps from site app catalog using PnP provisioning engine?

I have a use case where I need to install apps from site collection app catalog but there is no attribute to mention the scope in ALM element in the provisioning template Here is the link for XML ...
user avatar
0 votes
0 answers
101 views

PNP Search Results Managed Columns

I am looking to create a Knowledge base in SP for my company, the team doesn't just want to search in libraries, they want a more user friendly/ appealing search result. I have downloaded the PNP ...
user avatar
0 votes
1 answer
18 views

pnp search filter and search result v4

Has anyone used pnp search filter and search result. I have a choice field "LearningStack" in 7 different list and 6 different libraries. The idea is to have a page where I can display "...
user avatar
0 votes
0 answers
20 views

Granting access for ONE SPO site using AAD

Sine, or at least I know, for new tenants is impossible to give access for specific selected site collection by created access token via layouts/15/appregnew.aspx and layouts/15/appinv.aspx way. All ...
user avatar
0 votes
1 answer
152 views

Spfx PNP people picker error for context

I am working on solution where inside homewebpart there are many components (tsx files) in one of my PP.tsx file want to create PNP people picker control I added context:any in my PPProps.ts and ...
user avatar
  • 87
0 votes
1 answer
55 views

(401) Unauthorized error while accessing the Tenant details

I am trying to access SharePoint tenant details and able to get an accessToken using Oauth2 flow. then I used this token with CSOM to get tenant details as below. but I get 401 error . is there any ...
user avatar
2 votes
0 answers
52 views

Error while calling SharePoint API "_api/sp.userprofiles.peoplemanager/getpropertiesfor"

I installed my webpart from this link https://github.com/moumen100/sp-dev-fx-webparts/tree/main/samples/react-organization-chart This webpart use pnp.js profiles library to get user profile data and ...
user avatar
0 votes
0 answers
15 views

How do I download files from a shared folder SharePoint link with MFA?

I know you're supposed to use client ID en client secret for authentication. But obviously I don't have these since it's a shared folder. How do I still download files from a shared folder through a ...
user avatar
0 votes
1 answer
19 views

Problem with library node SPFx

I have trouble downloading npm install @pnp/spfx-controls-react, has anyone happened to it? It shows me the following error, I have removed and installed node again, but the problem persists
user avatar
  • 101
0 votes
0 answers
140 views

Add custom column to PNP Search filter web part

I am working on PNP Modern Search v4 web part inside our SharePoint Tenant from this URL - https://github.com/microsoft-search/pnp-modern-search/releases/tag/4.4.1. I have tried to use search box, ...
user avatar
  • 1
0 votes
1 answer
42 views

Set a link to a pnp term

i want to use poswershell to add a link to a sub term
user avatar
0 votes
0 answers
23 views

PNPJS LastItemModifiedDate for list item not working as expected

I am using below SharePoint REST API to get any changes to the List Items and I am getting expected value http://revamp.corp.xxx.com/_api/web/lists/GetByTitle('FormSettings')/LastItemModifiedDate But ...
user avatar
  • 1,519
1 vote
1 answer
55 views

PnP Location Control is not showing intelligence

I am trying to use Location Picker in my SPFx webpart and the suggestions are not working. It gives 401 error for below API along with CORS error. https://outlook.office365.com/SchedulingB2/api/v1.0/...
user avatar
0 votes
0 answers
19 views

Version history from REST API uses double encoded field names

I'm currently trying to retrieve SharePoint list items using PnPjs for a custom UI client. This includes displaying fields that have a version history. I'm trying to build the solution as dynamic as ...
user avatar
  • 101
0 votes
0 answers
66 views

Update app ALM Api in sharepoint site not giving proper response

I have tried updating the apps in sharepoint site using pnp/sp in SPFx web part import { Web } from "@pnp/sp/webs"; public static async UpdateApp(id, web) { var app = web....
user avatar
0 votes
0 answers
217 views

Get List Items with specific view by using SPFx with PnP/SP

I refer to the document from https://wowsomuch.com/sharepoint/pnp-js-caml-query/. When there are 3000 List items in specific view of List, the performance is not good (Low Performance). Does anyone ...
user avatar
  • 1
0 votes
0 answers
27 views

Unable to get the JSON of the Red theme. Error "Get-SPOTheme : Unknown Error"

We need to modify some color codes for the built-in Red theme:- So i tried running this command to get the JSON of the Red theme, but i got error:- PS C:\WINDOWS\system32> Connect-SPOService -url ...
user avatar
  • 2,234
1 vote
0 answers
37 views

Is there way to customize PnP modern people search so it displays more than 1 column of people

I am using PnP modern search v4.4.1 and was wondering if there was a way I can make 2 column or result appear instead of 1 column as following:
user avatar
0 votes
0 answers
211 views

SharePoint list column not found in PNP modern Search

I have a SharePoint list with several columns (these are not site columns). I created managed properties from the crawled properties corresponding to these columns. If now I use the native search bar, ...
user avatar
0 votes
1 answer
24 views

In SPFx is it possible to check if we're getting data from a List or a Document Library?

I use PnP in an SPFx web part. I'm wondering is it possible to know if its a Document Library or a List that's being access in getByTitle? var colsToSelect = [ "Title" ]; console.log('...
user avatar
0 votes
0 answers
21 views

PnP Core - Add an existing site column to a document library in C# on SharePoint Online

I have been able to create a new Field in a list and also at the site column level using PnP Core c# class library, however I am unable to find how I could add an existing site column to a document ...
user avatar
  • 11
0 votes
1 answer
566 views

Get SharePoint URL using sp-pnp-js in SPFx

I have a SharePoint SPFx react webapp that I'm working on. I'm trying to get the SharePoint URL. For example: https://mysite.sharepoint.com/sites/sitename/SitePages/Home.aspx#/ So I want to get ...
user avatar
0 votes
1 answer
45 views

How to upload a static HTML site using only PnP Powershell access?

If I have this example static site: https://github.com/Azure-Samples/app-service-web-html-get-started How do I get this visible as a static site in my office365 online sharepoint. I can successfully ...
user avatar
  • 101
0 votes
0 answers
38 views

you may need an appropriate loader to handle this file type

I am using the following code from pnp js library with modifications but it wont build. import { MsalFetchClient } from "@pnp/nodejs"; import { sp } from "@pnp/sp"; import &...
user avatar
  • 199
0 votes
1 answer
95 views

Deploying Calendar list using SPFx

I am trying to create a calendar list using SPFx feature framework. Am able to create custom list with content types but Calendar list is not getting created. XML for fields <Field ID="{...
user avatar
0 votes
2 answers
83 views

CSOM CreateAnonymousLinkForDocument share url link

I am trying to generate Anonymous Share URL link(s) for documents using the following CSOM method: internal static string GetFileShareUrl(ClientContext spClientContext, string fileRef){ ...
user avatar
  • 117
0 votes
2 answers
49 views

Create a copy of a site collection (modern communication site)

I have a modern communication site collection which I used as the development site collection >> and this site contains 3 lists >> the lists refer to each other using lookup fields. Now I ...
user avatar
  • 2,234
0 votes
0 answers
47 views

Prevent Guest Access when sharing document or folder

I am developing a tool for my company that allows people to share files from our network with clients in a very automated way to make sharing documents easier for everyone. However, I have run into a ...
user avatar
  • 121
0 votes
1 answer
236 views

Which is the newest supported version of @pnp/sp for SP 2019 (SPFx 1.4.1)?

When developing against SharePoint 2019 on-premises with the last supported SPFx v1.4.1, which is the newest supported version of @pnp/sp that works? I see that v1.3.9 works - the solution can be ...
user avatar
1 vote
1 answer
117 views

Authenticate to SharePoint online inside our console application if we have SharePoint app-only permissions disabled

On old created Office 365 tenants I use to authenticate to SharePoint online inside our C# console application using this code: static void Main(string[] args) { string siteUrl = &...
user avatar
  • 2,234
0 votes
1 answer
258 views

ConvertTo-PnPPage Cmdlet, PnP PowerShell, Unexpected URLs

I'm using PnP PowerShell cmdlet "ConvertTo-PnPPage" to migrate from SPO Classic Intranet to a modern communications site in the same tenant. In some of my page transformations, I'm getting ...
user avatar
  • 323
0 votes
0 answers
195 views

Newb issues: Connecting from C# Pnp.Framework to SPO

I've been away from SharePoint for 4-5 years and now need to migrate/upgrade an OnPrem site I created back then to SharePoint Online. The application involves a C# Widows Service that updates data in ...
user avatar
  • 263
0 votes
1 answer
1k views

PnP Modern Search - search only a list

I recently installed PnP Modern Search 4.0 for a SharePoint Teams site. Out of the box, it seems like it's searching every file in every SharePoint site in my organization. I want it to only search a ...
user avatar
  • 123

1
2 3 4 5
7