Questions tagged [pnp]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
12
votes
1answer
1k 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 ...
11
votes
2answers
316 views

How to use the patterns and practices

i have been looking around for how to use sharepoint patterns and practices on the pnp site. but it seems to me so broad and overwhelming i don't know how to use it. i can see so many projects there ...
7
votes
1answer
689 views

Get a count of all libraries and Workflows in my tenant using PowerShell

I'm using PNP Powershell and am still fairly new to Powershell and scripts. I need to get the count of all document libraries and workflows in our SharePoint environment. I am using SharePoint 2013 ...
6
votes
1answer
223 views

PNP JS in SharePoint

Till date we are coding custom solutions in SharePoint using JavaScript/jQuery/REST API, I need to know if there are any downfalls of using PNP JS as an alternate to REST? My company is pushing all ...
6
votes
1answer
107 views

Does AnyOne Know how to Debug SharePointPnP.PowerShell

I am using VS2017. I have downloaded into the same level, but diferent directories, in my GitHub Repro, SharePointPnP.PowerShell and OfficeDevPnP.Core and compiled both in Debug Mode. I have ...
6
votes
1answer
1k views

PnP powershell provisioning gives 401 error with tenant-scope (fullcontrol) app permissions

I want to create a new sitecollection with PnP Powershell and created an App with /_layouts/15/appregnew.aspx and granted permissions with: /_layouts/15/appinv.aspx. This is my permission request xml:...
5
votes
3answers
3k views

How to Provision a list with data using SharePoint Online PnP C#?

I have a custom list with few records in it. Now I am using PnP Provisioning Engine to provision the custom list to some other sites. By default, PnP is only provisioning the list structure and ...
5
votes
3answers
692 views

PnPJS with on-prem sharepoint?

Is it possible to use https://github.com/pnp/pnpjs with on-premise SharePoint with an external NodeJS application? Installing web parts is not an option I must perform read-only access. If so, what ...
5
votes
2answers
216 views

Cannot publish my SharePoint MVC app project in VS

I created in VS2015 a new App. VS will create automatically an app project and an MVC web project. Inside my MVC web project I have an template xml file as follow: <?xml version="1.0"?> <pnp:...
5
votes
1answer
31 views

Is it viable to manage a SharePoint Online site via PnP templates in source control with automated deployments?

I am trying to gain some traction on a new SPO project and it's been indicated to me that they want to maintain the site programmatically with PnP templates (XML files basically). The idea is that we ...
5
votes
0answers
113 views

Sharepoint Online - site closure and deletion not working

We have used PnP to provision sites and add policies. But when the date for deletion has passed the site collection do not get deleted. This is standard SharePoint functionality.. so I have no idea ...
4
votes
2answers
884 views

sharepoint framework and pnp

Is there a relation between SharePoint framework and PNP and CSOM ? Can I use SPF X with SharePoint on prem ? I need to start learning Sharepoint framework and need to know how to start
4
votes
1answer
64 views

Unable to pull in Number/Lookup Columns using pnp.js

I'm pulling in data from a SharePoint list and I'm having some issues pulling in certain columns. I was able to successfully pull in the 'Title' column which is a single line of text, but 'Rank' and '...
4
votes
2answers
5k views

How should I update the Office SharePoint PnP PowerShell Commands?

Every month there is a new release of the Office SharePoint PnP PowerShell Commands. I've been downloading them and just running the install wizard (next-next). This time (november 2016 release) I ...
4
votes
1answer
973 views

OfficeDevPnP.Core AuthenticationManager GetAppOnlyAuthenticatedContext is throwing error

I am thinking of trying OfficeDevPnp Core dll for CSOM operations in my current project. I'm doing a POC to check if add-in only context works for SharePoint 2013 on-premises. I have checked ...
4
votes
1answer
729 views

Sharepoint PNP Get Page Content

i'm using CSOM to create a provisioning template and then export this to a site. This works at the moment as all my lists and custom apps get exported to my new sites, but the site pages and page ...
4
votes
1answer
2k views

How to add Folders into Document Library using PnP Provisioning Template

I'm using PnP GetProvisioningTemplate() method to create Provisioning Template from existing site(have some document libraries with folders and files) and applying to newly created sites, using ...
4
votes
0answers
417 views

How to provision the custom list form using PnP Provisioning Engine?

I am following this article for provisioning Sites for SharePoint Online through console application. Now, In the base site, I have created the custom list and a new custom list form for the list. I ...
3
votes
1answer
1k views

PnP-JS-Core Property bags

Is there a way to get the property bags using PnP-JS-Core? There is nothing about it in the documentation or blogs that I've found in google. Using REST the call is: http://sitecollection/site/_api/...
3
votes
1answer
165 views

SharePoint List to HTML Table to TableExport.js

I'm using the TableExport.js API and PNP.js to pull data from a SharePoint list and display it on a Webpage and then have the options to export it into a Excel/CSV/Txt file. Homepage: Shows the ...
3
votes
2answers
245 views

PnPJS - Check if site collection exists

With PnPJS, is there a way to check if a site collection exists given several URL? Something like this: import {Site} from '@pnp/sp'; const sitesToCheck = [ 'myspsite.net/sites/sc1' // exists '...
3
votes
1answer
432 views

How to configure SPO to do app-only auth with PFX private key?

We are trying to set up SharePoint online app-only access. We are writing a C# application using https://github.com/SharePoint/PnP-Sites-Core The first thing we did was we (successfully) tested this ...
3
votes
1answer
184 views

Set Userfield to allow Multiple using pnp in SharePoint Framework

I've Created a Field on my list PollAnswers and everything works fine with that part: pnp.sp.web.lists.getByTitle("PollAnswers").fields. addUser("Users", FieldUserSelectionMode.PeopleOnly).then(() =&...
3
votes
1answer
28 views

PnPJS - MS Graph API - how to get group photo

I am using PnPJS for MS Graph API to retrieve groups information in SPFx solution. I am able to get the groups information properly. I need to get the group photo also, since photo is not available ...
3
votes
2answers
354 views

Is there a PnP PowerShell equivalent of Get-SPWebApplication for On-Premises ?

Is there a PnP PowerShell equivalent of this CSOM command :- $webapp=Get-SPWebApplication $WebApplicationUrl ? Which gets the details of the Web Application at $WebApplicationUrl (On-Premises Only)
3
votes
1answer
91 views

Get User's Time Zone using PnPJs

We are trying to retreive current user's profile Time Zone SPS-TimeZone from a SharePoint Framework webpart, but we are faicing an error (see below). Does anyone know about the best/most effecient way ...
3
votes
0answers
68 views

Composed look does not get applied to the new site collection using PnP Partner Pack

I create a site collection as I made some simple modifications like I applied a new composed look which is an OOTB one. I added two pages in the site pages library. I saved the site as a template ...
3
votes
0answers
36 views

PnP Provisioning engine apply same configuration to all lists of a certain tpye

As far as I can see from the PnP provisioning engine, each list instance needs to be specifically defined in the XML file. Is there a way that you can define one particular configuration to apply to ...
3
votes
0answers
293 views

How to set ListExperienceOptions with PnP-Poweshell

How do I set the ListExperienceOptions of a list to ClassicExperience using the PnP-Powershell? I have tried this # Create the list to hold work Types New-PNPList -Title "Work Types" -Url "...
3
votes
2answers
264 views

PnP-js-core Document form

Is there any example or guide to start using PnP-JS-core in the forms? Sharepoint Online. I've been looking for a while without luck!
3
votes
0answers
244 views

Adding view to a list content type - document set - SharePoint Online - PnP

I'm trying to add a view to a specific document set in a list. Fist I'm adding a the view to the list.. Add-SPOView -List "Demo List" -Title "Demo View" -Fields "Title","Address" But how do I add ...
2
votes
2answers
2k views

SharePoint Responsive Package PNP tools not able to enable feature in Package

I am trying to implement Responsive UI Package for SharePoint on-premises (2013 and 2016) from this link http://dev.office.com/blogs/announcing-responsive-ui-package-for-sharepoint-on-premises-2013-...
2
votes
1answer
1k views

Creating a lookup list field with OfficeDev PnP Provisioning Engine

I am trying to create a lookup list field (not a site column, just a plain list column) using the OfficeDev Patterns and Practices provisioning engine. I cannot seem to get the List attribute in the ...
2
votes
1answer
882 views

Create Modern Team site using PnP Core - Invalid value specified for property 'mailNickname' of resource 'Group'

I tried to create a modern team site using PnpCore. I tried to do it according the Create Modern Sites in SharePoint Online using CSOM , using the newer SharepointPnPCore Online 2.24.1803 ...
2
votes
2answers
95 views

Pnp powershell asking credentials again and again

In PnP PowerShell for SharePoint 2013 site, how to give credentials only once, so that it will not ask credentials again while connecting to different site collections coming from a CSV file input. ...
2
votes
1answer
142 views

Pnp : create a search query

I need a little remembering on pnp.search() queries. I know from a verified source that you can use either query text, SearchQuery Interface or SearchQuery Builder. No worries about that (except that ...
2
votes
2answers
1k views

SharePoint PnP Powershell - How to provision sub webs with unique permissions and default groups?

I've used the PnP Site provisioning method to create a sub web with unique permissions. However, when applying an XML site template with the default visitors, members, and owners security group ...
2
votes
1answer
614 views

How to set a User Profile Date field programmatically to a null value via CSOM

I am trying to remove a value of a user profile date field. We have a date field, SPS-HireDate, that I would like to clear in certain circumstances. I am using PowerShell, specifically Set-...
2
votes
2answers
60 views

Migrate a term from sharepoint on-premises to sharepoint online, to have same name & GUID

I have 2 farms sharepoint on-premises 2013 & sharepoint online. where we use to have a license for a third part migration tool, and we have migrated around 70% of the sites, but still the ...
2
votes
1answer
94 views

Did Microsoft eliminate the PnP Template Gallery or has it moved?

I found this post from 2016: https://developer.microsoft.com/en-us/office/blogs/pnp-templates-gallery-open-source-provisioning-templates/ “At Microsoft Ignite 2016, in Atlanta, we proudly announced ...
2
votes
0answers
25 views

permissionKind returns void in React

I have a search function that returns all list items including their parent link based on their content type, tenant-wide. Every list item comes from a specific subsite and I want to split the ...
2
votes
1answer
581 views

Update SharePoint Group Owner

I'm trying to update the Owner of a SP Group. This is what I've tried: import pnp from "pnp"; let newgroup = {}; pnp.sp.web.siteGroups.getByName("BA_Actuarial").get().then(function(g) { ...
2
votes
0answers
100 views

Get all the site collections where Sharepoint app is instalation

In need of an approach how a user can identify whether an app is installed on the site collection or not. App can be a provider hosted or sharepoint hosted but site collection will be on office 365. ...
1
vote
1answer
163 views

Alternative PnP commands to SharePoint Online Commands

Are there any alternative PnP commands to SharePoint Online Commands such as: Connect-SPOService Disconnect-SPOService Set-SPOUser Set-SPOSite Get-SPOSite Add-SPOSiteCollectionAppCatalog Thank you ...
1
vote
1answer
914 views

understanding set-pnplistitempermission

I am trying to use the following cmdlet in the pnp module on O365 and one of the parameters for the cmdlet is -identity -Identity The ID of the listitem, or actual ListItem object Type: ...
1
vote
2answers
2k views

How to change a property retrieved by Get-PnPField if there's no Set-PnPField?

I all, I really appreaciate what PnP for O365 has enabled us to do so far. I was wondering how I can change the setting on a list column to require or not require a value. In the GUI this option is ...
1
vote
1answer
29 views

@pnp/sp - send email function returns 404

Just wondering if I could get some help. I built a small webpart that sends an email. On my local workbench it works fine however when I deploy to production Error: Error making HttpClient request ...
1
vote
1answer
233 views

Update a site column Display name using PnP, to allow me to use existing Display Name

I am working on sharepoint online classic team site and i created a new site column using the site columns UI, as follow:- where the site column gets its display name and internal name as "...
1
vote
1answer
441 views

SPFX - cannot get actual label of managed metadata list field

I am using @pnp/sp to get list item data from sharepoint and i am getting list items with managed metadata field and user field. i can get all but not the metadata label which is the one i mainly need....
1
vote
1answer
393 views

Use an existing Content Type when you create a new list with PnP-js in SharePoint Framework?

I've searched for hours to find an answer, but wasn't able to find anything I could use for my case. I'm using PnP to create a new list on my site but I would like to use an already existing Content ...