Questions tagged [pnp]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
13
votes
1answer
2k 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
341 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
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:...
7
votes
1answer
755 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
243 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
114 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 ...
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
991 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
221 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
128 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 ...
5
votes
0answers
466 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 ...
4
votes
2answers
924 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
88 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
6k 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
1k 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
793 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 ...
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
206 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
324 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
593 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
198 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
91 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
392 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
174 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
74 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
37 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
310 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
271 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
262 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
1k 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
144 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
176 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
2k 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
645 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
67 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
144 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
31 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
628 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
101 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
224 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
1k 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
23 views

Configure App using CSOM c#

I am able to install/deploy an app to a sharepoint site using the code below var appManager = new AppManager(context); var apps = appManager.GetAvailable(); var foundApp = apps.Where(a => a.Id == ...
1
vote
1answer
37 views

SPFx Angular Elements with @pnp/spfx generator

How we can enable Angular elements in SPFx webpart using @pnp/spfx generator? Installed Versions: After "npm list -g --depth 0"
1
vote
1answer
67 views

Unable to hide a column in “NewForm” using PnP

Last week i was able to hide 2 site columns from New list form using this PnP script (the fields were of type Single line of text and Date/Time):- $User = "admin@****.onmicrosoft.com" $SiteURL = "...
1
vote
1answer
68 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 ...