Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [pnp]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
29 views

Taxonomy for Single line of text

I'm building a FAQ Accordion with SharePoint lists and I have the previous metadata working with TaxonomyFieldType but how do I target a single line of text? Column title: FAQKeywords ( Single line ...
3
votes
1answer
599 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 ...
1
vote
1answer
568 views

Trying to update Managed metadata column value in sharepoint library using pnp js

pnp.sp.web.lists.getByTitle("ListName").items.getById(1).update({ Title: Title, DeptDiv://internal name of list column { __metadata: { "type": "SP.Taxonomy....
0
votes
1answer
510 views

How to specify sharing link type via csom?

It's pretty easy to share document: string link = context.Web.CreateAnonymousLinkForDocument("https://tenantname.sharepoint.com/Documents/sample.docx",ExternalSharingDocumentOption.View); ...
1
vote
1answer
845 views

Add-PnPView - Show all items inside folder

I'm having an issue with creating a view on SP Online for a list to show all items inside folders. I can create the view with the filtering, but the option for the folders is not working. $viewQuery =...
1
vote
0answers
821 views

Using SP-PNP-JS to get data from custom content type fields with React

I'm currently making News Listing Web Part, where News are made as custom content type. I managed to get the basic fields like id, title, but others are really bothering me. The API fetches all the ...
0
votes
2answers
393 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 ...
0
votes
1answer
868 views

Pnp provisioning a sharepoint list

I am new to PnP. I have an existing site collection in SharePoint Online, however I want to add site columns and create new custom lists in it through template.xml. I do not want to change anything ...
0
votes
1answer
369 views

Need help with url and rollup image fields in sitepages using SPFX with REST

I'm new to SPFX and still trying to find my way around. At the moment I'm struggling to access particular fields from site pages using REST. I realize this is a n00b request, but any help would be ...
0
votes
1answer
338 views

How to get all modified wiki pages after specifc date inside a PNP script

I have the following powershell which I use to loop through a wiki page library inside my On-Premise site, and filter out all the wiki pages which have been modified after a certain date: $startdate =...
1
vote
0answers
32 views

Responsive Lists in SharePoint 2016 (on prem)

I'm wondering if there is a nice way to make lists work with responsive design (for mobile and tablet views)? I've been investigating this responsive framework from PnP for general page content, but ...
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
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 ...
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 ...
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 ...
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: ...
4
votes
1answer
796 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 ...
0
votes
1answer
534 views

Creating list with Columns in SPFx is failing for few columns

I am creating a list with specified columns on page load (later i will change this logic to on button click). I am using SPFx framework. I have installed sp-pnp libraries. I am able to create the ...
-1
votes
1answer
1k views

How to add these user custom actions in site/subsite using CSOM in SharePoint online?

<?xml version="1.0"?> <pnp:ProvisioningTemplate ID="CommandUIRibbonSamples" Version="1" xmlns:pnp="http://schemas.dev.office.com/PnP/2015/12/ProvisioningSchema"> <pnp:CustomActions>...
0
votes
1answer
128 views

Add SFPX Extension to an existing App Package

Just wondered if anyone has successfully added an SPFx extension to an existing App Package or provisioned without using an package. We have an existing hosted provider application, an associated ...
1
vote
1answer
1k 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. ...
2
votes
1answer
650 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-...
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
0answers
471 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 ...
1
vote
0answers
293 views

Set field in Content Type to Hidden

How do I set fields in Content Type to hidden? This run below runs but the field didn't change. Also how can I specify which field I want to set? var x = function () { var listContentTypes; ...
0
votes
1answer
793 views

Delete documents in a document library with pnp-js-core

How can I delete a document in a document library with Pnp-Js-Core, but I need the registry to be stored in the recycle bin. Thanks.
1
vote
0answers
98 views

pnp update existing out of the box field

I have an xml document which contains a list of content types and fields. One currently contains a field that is out of the box, which I am wanting to change the default value of within this xml ...
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 ...
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 ...
1
vote
1answer
908 views

Check if SharePoint site collection exists

I'm am troubled that this simple tasks has proven so difficult. I've tried several different techniques to check if a URL exists but none are acceptable. Using HttpWebRequest, it returns 403 on ...
1
vote
2answers
4k views

Sharepoint Online upload files to library with PnP-JS-Core 2.0.7

How do I upload a file with all properties or fields values to a sharepoint library? I'm using PnP-JS-Core 2.0.7 Thanks!
0
votes
1answer
170 views

SP16 - Use PnP Library to access SP On-Premise Data

Can i use any pnp library(.ddl) to access SharePoint 2016 On-Premise data in Visual Web Part Solution? I want to Use SharePoint Server Object Model
1
vote
1answer
375 views

var values outside the PnP JS-Core method

Why doesn't this work? Example var w = new $pnp.Web(baseurl); var thisfieldid; w.lists.getByTitle("List").fields.filter("Title eq 'Column1'").get().then(function(data) { thisfieldid = data[0]....
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 ...
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:...
1
vote
1answer
272 views

Add-PnPDataRowsToProvisioningTemplate : Object reference not set to an instance of an object

I have been trying to extract data using the new PnP command Add-PnPDataRowsToProvisioningTemplate But I am getting a null reference exception: Add-PnPDataRowsToProvisioningTemplate : Object ...
2
votes
1answer
635 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) { ...
7
votes
1answer
757 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 ...
0
votes
0answers
364 views

Modification of list item properties using PnP CSOM

Is there any place where I can find a straightforward example of how manipulate a list item properties using PnP CSOM Core? I've been looking for examples and watching videos in the official ...
0
votes
1answer
2k views

Iterating Through Site Collections in a Tenancy using PnP PowerSHell

Does anyone know how I can Iterate through a series of Site Collections in a Office 365 tenancy using PnP PowerShell ? I can get a series of Site Collections using :- $sitecollections = Get-...
3
votes
0answers
311 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 "...
1
vote
1answer
189 views

Does Set-PnPFileCheckedIn.cs support folders?

I have a document which is two folders deep in a document library. When I try and use Set-PnPFileCheckedIn with a Url like "/Documents/Incorporation/Objections/incorporation objection.docx" I get an ...
3
votes
2answers
398 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)
6
votes
1answer
115 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 ...
0
votes
1answer
315 views

Can't find where content type is in use

Using CSOM, I created a list, a content type and then I added the content type to the list. Then using PnP PowerShell I wanted to delete both the list and the content type so I wrote: Remove-PnPList -...
1
vote
1answer
479 views

Get-PnPProvisioningTemplate User Groups and Workflows

In my today's SharePoint situation I need to replicate an website from a dev environment into another dev environment (without content, only structures). I have been looking to the Get-...
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
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!
11
votes
2answers
344 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 ...
1
vote
1answer
443 views

Can I use Get-PnPUserProfileProperty with SharePoint 2013 On Premise?

The Get-PnPUserProfileProperty (part of the Officedev Pnp Powershell commandlets) can be used to query User Profiles on SharePoint Online. We must connect to the tenant admin website (https://:-admin....