Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [office-dev-pnp]

Office 365 Developer Patterns and Practices

1
vote
0answers
13 views

Best way to do site level configuration

I'm not sure if this will be a duplicate or not - I've had a search and can't find it. My issue is, I have the need to add custom configuration/properties to sites when they are provisioned, so these ...
0
votes
1answer
10 views

SP.Response.UI doesn't work for Oslo masterpage

I have provisioned a site and have set it up to use the SP.Responsive.UI (PNP). But what i noticed is when its switched to the Oslo masterpage it breaks the site and the OOTB menus and context menu ...
0
votes
1answer
25 views

Programatically Add a link to QuickLink App

Using Pnp (C#) to provision a modern page and adding a QuickLinks web part. But can't add links to the webpart. Any suggestions?
1
vote
0answers
20 views

Working with npm packages in SharePoint hosted app

I am starting to work on a SP 2013 hosted app. I am planning to use typescript and have setup my project with Typescript configurations enabled. I have created a SP module called "dist" and all ...
0
votes
1answer
29 views

Possible to track session of user in sharepoint?

i just got a requirement to modify some code in my SPFX app to detect a user sessions. the requirements is that i have to lock that specific list which is tracked by a separate tracking list (schema: ...
1
vote
1answer
288 views

Office UI Fabric Dropdown event onChange not working

I am creating SPFx component with React framework. For UI I am using Office UI Fabric controls. During my development I have found that "Dropdown" control's onChange event is not firing Based on ...
0
votes
1answer
21 views

Power BI webpart not visible when adding it with OfficeDevPnP

I am creating a console app that will create sitepages with certain webparts in it. To Manage this I am using OfficeDevPnP and how I do it is described in the text below. The issue here is that the ...
0
votes
0answers
32 views

Add Remote Event Receiver via PnP Provisioning Schema

I am Working with PnP Provisioning engine and its working as expected. Now what I am looking for is to associate Remote Event Receiver to List/Library via PnP Provisioning Shema. Below is the link ...
0
votes
0answers
24 views

SP Online & managed properties : How to render Enhanced Rich Text from Multiline Columns?

Hello fellow sharepointers ! What I want to achieve : I created an Extension that displays a FAQ list. To retrieve FAQ items in this extension, I'm using PnP and the search() function. In this FAQ ...
1
vote
1answer
78 views

Create Site Policy in SharePoitn Online with PowerShell/CSOM

I was researching for add/edit/delete Site Policy in SharePoint Online with PowerShell/REST but with no luck. Is it possible with SharePoint Online with PowerShell/CSOM?
1
vote
1answer
154 views

Comment on o365 modern site page with PnP

Is it possible to programmatically add a comment to a SharePoint Online modern site page using Office Dev PnP? I am not able to find any resources on this.
0
votes
0answers
61 views

Calling SharePoint /_api/$batch and passing in complex object type to POST request

Looking at how SharePoint move items using the Network tab in chrome, the items get moved using _api/site/CreateCopyJobs. This returns result in type=Collection(SP.CopyMigrationInfo) This contains ...
0
votes
0answers
21 views

Package SharePoint Provider Hosted add-in with Visual Studio Team Services

I would like to setup continues build and release for my SharePoint Provider Hosted add-in with Visual Studio Team Services. For now, I am using Visual Studio to publish the Add-in which generates "...
1
vote
1answer
58 views

Custom Edit Form WebParts, How to Prevent Overlapping Saves

I'm working on building a custom form webpart that will be basis for all of our custom forms going forward. A single webpart to handle New, Display, and Edit. This will facilitate our migration from ...
0
votes
0answers
47 views

Include Specific list in PnP Provisioning

I would like to use PnP Provisioning engine to clone list from one site to another. In order to do so, I would like to create provisioning template with just one list in it. When I use ...
1
vote
0answers
24 views

Unauthorized error on GetProvisioningTemplate

I have Provider Hosted Add-In and everything is working as expected but fails on 'web.GetProvisioningTemplate(creationInfo)'. it gives me below error The remote server returned an error: (401) ...
0
votes
1answer
130 views

ApplyProvisioningTemplate SharePoint Publishing Feature no response in SharePoint Online

We want to enable some SharePoint features during the provisioning process. In our PnP-Template there are three GUIDs of features, which have to be enabled: <?xml version="1.0" encoding="utf-8" ?&...
2
votes
2answers
256 views

Frequent sites on SharePoint Online Home Page

Is there a way I can have "Frequent sites" on my website? Is this a webpart or SpFx component that I can add to any of my existing site? I would like below into my own site page. Digging bit more I ...
0
votes
1answer
87 views

Debug SharePoint Framework with Visual Studio Code

I am following instructions from below link in order to debug SharePoint Framework, https://docs.microsoft.com/en-us/sharepoint/dev/spfx/debug-in-vscode When I do "gulp serve" i can see local ...
2
votes
2answers
186 views

Office 365 developer program

I am trying to enroll myself on "Office 365 developer program" via below link https://developer.microsoft.com/en-us/office/dev-program When I click on "Join Now" it gives me an option to select my ...
1
vote
2answers
104 views

Content Type is provisioning in SharePoint Online

I am aware that custom content type will not be available immediately in any existing site when we create a new one. In my experience, I have seen that it takes somewhere around 6-8 hours to appear in ...
0
votes
1answer
135 views

Get-SPOSite does not work with ErrorAction

I am working with SharePoint PnP PowerShell and using below command. This command works but when the site does not exist it gives me an error on the screen even if I specified -ErrorAction:...
1
vote
0answers
181 views

Not able to Load Managed Metadata Context

I am trying to create Term with PowerShell in SharePoint Online to do so I have written below code but on [Microsoft.SharePoint.Client.Taxonomy.TaxonomySession]::GetTaxonomySession($spContext) ...
2
votes
1answer
70 views

Add-PnPOffice365GroupToSite blows up on alias parameter

Using the script posted here: https://docs.microsoft.com/en-us/sharepoint/dev/transform/modernize-connect-to-office365-group I am trying to add an Office 365 group to a standard Team site ...
1
vote
1answer
57 views

How to site Provisioning in office 365 (SharePoint online) by Custom

I want to do site provisioning (Custom), not using pnp starter kit, all should be done by custom. I have custom list/ columns, custom look and content type. How to package and how to deploy on o365
0
votes
0answers
31 views

Multiple file check-out check-in with SharePoint Online

Today I was contacted by a user and complained about not able to do multiple file check-in/check-out with SharePoint Online. Is this something I can be enabled or something is planned for upcoming ...
1
vote
1answer
170 views

Can I use SharePointPnPCoreOnline NuGet package with On Premise 2013?

I'm maintaining a CSOM CLI solution for interacting with SharePoint 2013 (automated creation of lists and libraries, manage groups, ...). The solution is built with the SharePoint Server 2013 Client ...
1
vote
0answers
141 views

ApplyProvisioningTemplate function from SharepointPnPCoreOnline is taking too much time to create a site using a XML Template

I'm currently working with the SharepointPnPCoreOnline library, or more specifically, with the git project Sharepoint/PnP-Sites-Core. I'm using it to download the XML template of a site: ...
0
votes
0answers
116 views

SharePoint MoveCopyUtil.CopyFile does not copy latest file

I'm trying to copy all of the documents from one library in my root site into a library of the same name in a subsite (same site collection) using MoveCopyUtil.CopyFileAll. All of the files copy ...
1
vote
0answers
35 views

Sharepoint webpart using yoeman scafollding…not working

Tried developing the hello web part from yo man scaffolding. Everything works except when tried to package-solution and install it on office 365 site... I am getting...You can't add this app here. "...
0
votes
2answers
505 views

SharePoint PnP PowerShell Provision Comments with Modern page

I an provisioning some modern pages from One site to another using SharePoint PnP PowerShell by Generating and Applying Provisioning Template. I am able to Provision the page with web parts but the ...
0
votes
1answer
219 views

Issue getting context using AuthenticationManager

I am trying to get the context of my site using OfficeDevPnP.Core AuthenticationManager with the ClientID and ClientSecret var ClientId = "<>"; var ClientSecret = "<>"; ...
3
votes
1answer
579 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 ...
3
votes
3answers
2k 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 ...
1
vote
0answers
67 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 ...
2
votes
1answer
85 views

Are “Apps for Office” being deprecated as an approach now by Microsoft?

Are "Apps for Office" (Office Add-in) being deprecated as an approach now by Microsoft? I know SharePoint apps have changed quite a bit to a REST Javascript Library in SEWP model now. What is the ...
1
vote
1answer
198 views

The type or namespace name 'Pages' does not exist in the namespace 'OfficeDevPnP.Core' (are you missing an assembly reference?)CSOM

I have installed the latest Version of OfficePnP.Core (2.6.1608.0) but I donot see the Namespace OfficeDevPnP.Core.Pages Is there something else that Needs to be done ?
2
votes
0answers
30 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 ...
2
votes
0answers
19 views

How to add collect feedback webpart to a library by Office Dev PnP?

I am creating an office dev pnp template for site provisioning. I created some fields, contenttypes, lists, document libraries, pages etc. I would like to add the OOTB collect feedback workflow to a ...