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
0answers
4 views

HyperLink to Search Webpart

I have a SharePoint Content site with the PnP Modern Search Feature. I have a search filter set up. Is it possible to take text in the SharePoint site and make it into a hyperlink that will ...
0
votes
1answer
18 views

SPFX react solution intrinsic error

child component export default class Example extends React.Component<ICState,{sData,cData}> { constructor(props,state:ICState) { super(props); sp.setup({ context: ...
0
votes
0answers
10 views

How to retrive view data for a grouped view using pnp/sp

I need to retrieve the grouped view data as describled in this post using PNP/SP@1.2.8: https://piyushksingh.com/2016/11/21/retrieve-grouped-listitems-sharepoint/ Meaning I need the aggregated group ...
0
votes
2answers
16 views

How can we call oneDrive data into SPFx webpart, which is hosted in SharePoint site?

We need to get the information of all the OneDrive folders and its files in SPFx webpart and this webpart is hosted in another SharePoint site. Thanks in advance
1
vote
0answers
19 views

Extract/Get PnP Provisioning Template with tokens

Is there a way of getting the pnp provisioning template xml of a site with the tokens instead of the actual values?? I'm always facing this whenever we have multiple environments and I just have to &...
0
votes
1answer
846 views

Can i get the total number of files,folders & size for a sharepoint online document library

Inside sharepoint (on-prem & on-line) we can get the total number of items inside a document library (this includes files and folders) from the site content page. but i have a document library ...
0
votes
1answer
14 views

ContentType from ContentTypeHub takes time to be available in Team Site

I currently use PnP cmdlets to provision a Team Site and want to apply a PnP template that refers to a ContenType usually published by the ContentType Hub. Right now, when I try that, it usually fails ...
0
votes
1answer
23 views

Content editor web part issue in PNP Modernization from classic publishing page to modern client side page

I am using PNP modernization framework (.net) to transform classic SharePoint online publishing pages to modern client side pages. The classic publishing page contains content editor web part in which ...
0
votes
0answers
27 views

How do you add a Hero web part to a FullWidth Section using PS PnP?

When running the following PowerShell code using the PnP module (Install-Module SharePointPnPPowerShellOnline): Connect-PnPOnline -Url https://tenantname.sharepoint.com/sites/sitename -UseWebLogin Add-...
1
vote
0answers
18 views

When i am trying to get data formatted data from list(rich text) and bind it to pnp Rich text box cntrol nothing is visible [closed]

When i am trying to get data formatted data from list(rich text) and bind it to pnp Rich text box cntrol nothing is visible in control, though the data is there in state. I have tried to use below ...
0
votes
1answer
28 views

cross site collection file property update in SPFx

is there a way to update SharePoint Library file properties from different site collection? I have file uploaded to https://sharepoint.com/sites/site1 & I need to update the file property from ...
0
votes
1answer
34 views

Upload file from one site collection to another in SPFx

I have a SPFx solution which have a input tag to upload a file. When I try to upload the file in the same context of the site collection it works fine, but I am not able to get uploaded to different ...
1
vote
1answer
2k views

Disable Read Only SharePoint Content Types - Powershell

I use the PnP Commandlets to do much of my site building but cannot figure out how to make Site Content Types not read-only. There is no way to do this with commandlets so I'm looking for some help. ...
0
votes
2answers
38 views

Delete a SharePoint Online site collection

When deleting sharepoint online sites like below does not work for modern team sites: Tenant.DeleteSiteCollection("https://xx.sharepoint.com/sites/segato-slet-01",true); This will tell you you need ...
0
votes
2answers
98 views

Customizing the PnP people search handlebar template in SharePoint online

I am using the modern PnP SPFx people search web part - and for the people search below is the out of the box template is generated by the web part: <content id="template"> <style> ...
0
votes
1answer
21 views

How to resolve “Failed to fetch” error from the react-pnpjs-project-online project?

I have downloaded the code react-pnpjs-project-online from below link and run the project: https://github.com/pnp/sp-dev-fx-webparts But when I click on Get all projects button, its throws an error: ...
2
votes
1answer
788 views

PnP PowerShell - Get-PnPFile error checking if file exists

I'm trying to check if file already exists in a SPO document library using PnP PowerShell command. This is part of my PowerShell script: Try { #Get all Files from the source folder $...
0
votes
0answers
13 views

Using PnP provisioning engine results in empty template

I am using the PnP provisioning engine according to https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/introducing-the-pnp-provisioning-e... the article makes it sound so simple that ...
2
votes
1answer
46 views

[PnP][SharePoint] How to add a column to all content types of a list?

I have a list in SharePoint with 50 content types. My list has two columns that I want to add to each content type in my list using PNP library. Until now I have something like this: Add-PnPField -...
13
votes
1answer
3k views

Creating modern team site takes long time to complete

I am creating modern team sites from managed code using PnP Unified Groups utility from PnP core with app-only permissions. This has been working just fine until recently. Now, the SharePoint site ...
0
votes
1answer
39 views

PnP PeoplePicker not working on full names

Below is the PnP Peoplepicker control code that I'm using. The issue that I'm having here is with space-character within the name. Say I have valid user "Rachel Green". If I type-in "Rachel" I get 10 ...
0
votes
0answers
10 views

Is there any pnp script to get all site collection and user id, access level ,user email id,access level for sharepoint oniline

Need pnp powershell script to get all all site collection and user id, access level ,user email id,access level for sharepoint online
0
votes
1answer
707 views

Sharepoint O365 pnp js get all users

I know this has been asked several times but I haven't found a viable solution. I am building a spfx webpart where I want to display every single user with name, title, email etc. I am using the pnp-...
0
votes
1answer
22 views

Retention Policy for sub-sites

Is there a way to apply retention policies to sub-sites in SharePoint Online? Something with PowerShell PnP where we list the sub-site URL and policy target in Excel? We have looked at site ...
0
votes
1answer
324 views

Unable to grab files inside folders on SharePoint using PnP js

Does anyone have some reference on why I'm unable to pull in files from a folder in SharePoint? This is what I have so far, this will be my PnP js call (I don't I'm not doing something right) <...
0
votes
1answer
2k views

Updating sharepoint list items with batch pnp, in bad request

I've used this guide to create my batch and update the items. var list = pnp.sp.web.lists.getByTitle("Categories"); list.getListItemEntityTypeFullName().then(entityTypeFullName => { var batch =...
1
vote
0answers
28 views

Using PnP provisioning template and updating ExchangeId and IndexId JSON properties for a News web part

I'm using the PnP extension ApplyProvisioningTemplate to apply an XML site template as part of our provisioning process, a C# API running in Azure. One of the ClientSideWebPart we use is News. I have ...
1
vote
1answer
25 views

Working with adding attachment works fine on workbench but generated 404 error on site

While working with adding attachment to sharepoint works fine with workbench i.e.-https://sample.sharepoint.com/sites/Dev/_layouts/15/workbench.aspx but while deployed at sharepoint site it generates ...
1
vote
1answer
38 views

Adding Multiple Image file to folder not working

I am using pnp for adding files but its just adding one file only. I want to upload multiple Images files, and save it to the sharepoint folder. Using React with Typescript. <input type="file" ...
1
vote
0answers
35 views

PnP PowerShell - how to load all properties of a ClientObject?

Given a PnP cmdlet such as Get-PnPList there're a bunch of properties available but they're not populated upon executing the cmdlet. I'm looking for a way to load all of them, in a single call. I ...
0
votes
2answers
722 views

Remote event receiver not firing (SharePoint Online)

I have downloaded the PnP sample project ECM.AutoTagging and have configured an azure service bus for debugging, have created new client id/token and updated the app manifest/web.config and so on. I ...
1
vote
1answer
676 views

How to publish a HTML pagelayout in pnp-Powershell?

I would like to publish a pagelayout html file with pnp-Powershell. This is a custom html pagelayout which is related to an aspx file. These files are stored in the masterpage gallery.
1
vote
1answer
88 views

How to provision site assets with PnPProvisioningTemplate

I am trying to include company-wide images in my provisioning of Team sites in Sharepoint Online. I would use an organization asset library, but my Sharepoint topography is based on Hub sites with no ...
0
votes
0answers
19 views

Set-PnPTraceLog with Azure PowerShell Function

Thre are lots of post regarding how to use PnP with Azure PowerShell Function below are few links https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-pnp-...
0
votes
0answers
30 views

Get list items from a site collection in different Geo location using REST API in SPFx

I'm trying to get list items from a different Geo-location within the same tenant in an SPFx solution. I've tried pnp-js, spHttpClient, etc and end up getting 403. Is there a way to achieve this?
1
vote
1answer
64 views

Get-PnPProvisioningTemplate with -IncludeSiteCollectionTermGroup, how will it work if i Apply the template to the same tenanat and to a new tenant

I am reading about the Get-PnPProvisioningTemplate -Out template.pnp -IncludeSiteCollectionTermGroup from this link https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/get-...
1
vote
2answers
132 views

Apply-PnPProvisioningTemplate : The specified user c:0t.c|tenant|5*****c could not be found

I want to copy a site collection from one tenant to another. insdie the source i run this command:- Get-PnPProvisioningTemplate -Out c:\template20.pnp -IncludeSiteCollectionTermGroup inside the ...
0
votes
1answer
45 views

Get-PnPProvisioningTemplate return this error Get-PnPProvisioningTemplate : Maximum retry attempts 10, has be attempted

I have a communication site collection inside our SharePoint online tenant. and i want to export this site and create a new site based on the exported template, so i run this command:- Connect-...
0
votes
0answers
18 views

Can we batch API calls if they're wrapped in custom functions?

I have this method and I am wondering if we can batch the API calls. I am not sure if it's possible, because I am using a wrapper function that contains the pnp API functions. Is there a way to do ...
0
votes
1answer
157 views

Parameters in PnP template in JsonControlData property

I tried to provision a modern site with a people web part. The configuration of this web part is mainly stored in a property called JsonControlData. I would like to know how to properly add ...
1
vote
1answer
31 views

PnP site template - include 'Embed' webpart with <iframe>

I am provisioning sharepoint sites using a pnp site template and would like to add an embed web part. I am able to add 'people' web parts with the following: <pnp:CanvasControl ...
0
votes
1answer
119 views

pnp schema template issue - how to inlcude “new and existing guests” option in the schema

I am not finding the right XML schema to include it in my PNP provisioning template. How can I include settings called "New and existing guests" for external sharing while provisioning a site using ...
2
votes
1answer
30 views

Is there a way to get the json content of files fetched through a CAML query?

const query = `<Where> <Eq><FieldRef Name="File_x0020_Type"/> <Value Type="Text">json</Value> </Eq> </Where>`; const xml = '<View ...
0
votes
1answer
312 views

Retrieve data from SharePoint list via PnP JS and CAML Query

I wanted to display all files which have the property" Job" = "Job1" how to retrieve list view items using PnP JS and CAML Query here is the CAML Query ? <ViewFields> <FieldRef Name='...
2
votes
1answer
21 views

SP PnP - Syntax error encountered while updating existing file metadata

Albeit a newbie, I'm stumped that something this simple is causing an issue. I have a document in a document library in SPO that for which I'm trying to update 4 metadata attributes. Here is my syntax ...
1
vote
1answer
96 views

How to get items from SP list using query and @pnp/sp and Filtering

I have a getItems function that accepts a filter, but I need to know how to pass in two different filters so that I can retrieve items filtered by both Age and First Name. Here is the definition of ...
0
votes
1answer
81 views

Unable to remove a Remote Event Receiver attached to a list using Remove-PnPEventReceiver .Erro “emove-PnPEventReceiver : Access denied.”

I have a remote event receiver which is attached to a list. so i want to remove it, but when i try this PnP script using the Office 365 admin:- Remove-PnPEventReceiver -List "Our Project" -Identity "...
3
votes
3answers
374 views

Can i save a list as template using PnP script inside my modern communication site

I am working on a communication modern SharePoint site. and seems these modern sites, do not allow us to save the list as template. as i want to save our list as template and re-create it inside ...
0
votes
1answer
33 views

Sharepoint search in library

We are using the PnP modern search web-parts but we get no results when searching on a one of our sites. Settings are OK, Searchable, Re-indexed, documents are primary versions. On other sites (same ...
1
vote
2answers
427 views

Logic app deployment from DEV to PROD

I am new to Logic Apps so this might be a very basic question. Here is what I have done, I have created a very basic Logic App which will trigger when a new item is created in SharePoint List and ...

1
2 3 4 5