7 votes
Accepted

Property 'web' does not exist on type 'SPRest'

In the previous versions 'web' was still present in the rest.d.ts file of the @pnp/sp package. That's not the case anymore. In your main webpart TypeScript file, you have to use the import as follow: ...
user avatar
  • 86
7 votes

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

I have done a similar thing recently and have written an article about it. You can easily achieve this by running some SharePoint PowerShell commands. Connect-SPOService -Url https://yoursharepoint-...
user avatar
6 votes

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

i managed to do this by adding rows as XML, a alternative option for some scenarios, perhaps? <pnp:Lists> <pnp:ListInstance Title="bookings" Description="bookings list demo" TemplateType="...
user avatar
5 votes
Accepted

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

This is by design. PnP will only migrate the structure and content types and not data. To provision the data, you will need to write a custom extensibility provider. You need to write that in your ...
user avatar
  • 30.3k
5 votes

Office 365 developer program

It seems like you can keep the subscription for 99$/year , according to https://docs.microsoft.com/en-us/office/developer-program/office-365-developer-program-faq
user avatar
4 votes
Accepted

Office UI Fabric Dropdown event onChange not working

I do observe the same here. Interestingly, the deprecated onChanged event fires and not onChange. Works if extending a basecomponent and something is missing while extending React.Component. In the ...
user avatar
3 votes
Accepted

Sharepoint PNP Get Page Content

I'm faced the same issue few months ago. According to the Office PnP source code, that behavior is not implemented (Ref: ObjectPageContents.cs). You have to extract yourself pages and their contents ...
user avatar
3 votes
Accepted

Get-SPOSite does not work with ErrorAction

There are 2 ways you can avoid such cases, 1. Use Try Catch block Reference msdn try{ Get-SPOSite -Identity $siteUrl } Catch { write-host “error in finding the site”} 2. Change the logic and use ...
user avatar
  • 2,317
2 votes
Accepted

Can I use SharePointPnPCoreOnline NuGet package with On Premise 2013?

I've done some testing using the SharePointPnPCoreOnline NuGet package version 2.26.1805.1 (2018-05-15) against a SharePoint 2013 on premise farm (Version 15.0.4971.1000; October 2017 CU). I can ...
user avatar
  • 1,472
2 votes
Accepted

Power BI webpart not visible when adding it with OfficeDevPnP

Because the webpart needs a set a configuration, which you provide during editing the page, rather you should add the webpart to the page with preconfigured set of properties. That will make your ...
user avatar
2 votes

Content Type is provisioning in SharePoint Online

Using the content type hub will ensure that the site columns and content types will be available on every site collection and makes updates across the tenant pretty easy. The downside is that we'll ...
user avatar
2 votes

What is the best way to store credentials for SharePoint Online?

Windows Credential Manager is one option. Another option would be to use a file or registry and use DPAPI. There are lots of examples out there, so don't take the above as the absolute only way to ...
user avatar
  • 28.9k
2 votes
Accepted

Unwanted permission requested by Azure AD Consent for PnP PowerShell

PnP Management shell is a multi-tenant application and so you can't control its permissions. However, you can ask the Admins to create the Azure AD application with permissions that you need. Once ...
user avatar
  • 30.3k
1 vote

Failed to execute MS Graph backend request GetGroupInternalApiRequest

I can reproduce this error, it was failed during the stage of Team provision. In fact the group has been created, you can check it through the admin centre. This error also occurs on PowerShell ...
user avatar
  • 1,109
1 vote

Log into SharePoint tenant through CSOM with MFA enabled

I understand you want to switch to another user but authManager just grab and use the existing cache, which causes it auto login with existing account. In fact the login window use IE as the web ...
user avatar
  • 1,109
1 vote
Accepted

User field value not updating using PNP SPFX solution

If the field name is "Users" you can specify it as "UsersId" in your request body like so if you want to set it by user ID: sp.web.lists.getByTitle("test").items.add({ Title: 'test1', ...
user avatar
  • 2,229
1 vote
Accepted

Using SharePointPnPCoreOnline with Azure Function

SharePointPnPCoreOnline is a wrapper around CSOM, which is not compatible with .NET Core without a bit of hacking. You need to use full .NET Framework, and V1 of the Functions runtime, in order to ...
user avatar
  • 7,778
1 vote

Property 'web' does not exist on type 'SPRest'

In IReactSpfxProps.ts file: import { WebPartContext } from "@microsoft/sp-webpart-base"; export interface IReactSpfxProps { description: string; context: WebPartContext; } ...
user avatar
  • 2,493
1 vote

Invalid Command for o365 spo login CLI

As per below the new command is "o365 login" and not "o365 spo login" https://github.com/pnp/office365-cli/issues/889
user avatar
1 vote
Accepted

Add properties to modern site programmatically

For tasks like these, I highly recommend using PowerShell PnP. It's a fantastic, powerful and easy-to use PowerShell Module. This is what you want to do in only 4 lines including Installation of the ...
user avatar
1 vote
Accepted

CSOM: Unable to update or create content type - Value cannot be null. Parameter name: s

This is a known issue because server side breaking changes at Microsoft's end. Reference - Breaking change on creating content types using CSOM - Value cannot be null Temporary fix - Update to the ...
user avatar
  • 30.3k
1 vote
Accepted

How to get deleted site collections in SharePoint Online

You can use GetDeletedSitePropertiesFromSharePoint from the tenant object. Try with the below sample code: string userName = "user@tenant.onmicrosoft.com"; string password = "password"; string ...
user avatar
  • 30.3k
1 vote

SharePoint Online Gear menu changed recently

This change is only in modern pages it seems, and while I can't site a reference, I can pretty well tell you that there is no supported way for you to do anything about it, any more than you can do ...
user avatar
  • 1,505
1 vote

Content Type is provisioning in SharePoint Online

CTs are provisioned from the CTHub to the Site Collection which runs on a timer job. Yes, after a new SC is provisioned, you will have to wait for the timer job to complete a run.
user avatar
  • 28.9k
1 vote

Create Site Policy in SharePoitn Online with PowerShell/CSOM

CSOM for SharePoint online contains the Microsoft.SharePoint.Client.InformationPolicy namespace which contains the API for handling the site policies. You can use it by adding the reference to the ...
user avatar
  • 3,536
1 vote
Accepted

Custom Edit Form WebParts, How to Prevent Overlapping Saves

If I understand you correctly you want to prevent a concurrency issue where two people would save the same item and would overwrite date. With the SharePoint Rest api this is managed with the etag ...
user avatar
  • 1,615
1 vote

Office 365 developer program

Your subscriptions will be cancelled. If you do not extend them, your data will be made inaccessible as if it was a regular tenant: Answered by Kasper. You have several price-reduced plans to extend ...
user avatar
  • 5,063
1 vote

Add-PnPOffice365GroupToSite blows up on alias parameter

This error is occurring because you have not enabled Site classifications. You need to enable Site Classifications in your tenant to use the classification parameter. For that, you need to use the ...
user avatar
  • 30.3k
1 vote

SharePoint PnP PowerShell Provision Comments with Modern page

It seems that the engine did not have support for disabling comments on moderns pages at the time of this question. This is now supported according to the update notes for May 2018 update Added ...
user avatar
1 vote

SharePoint PnP PowerShell Provision Comments with Modern page

In my experience, the PNP provisioning cmdlets are sometimes buggy, and is not yet full featured, although new features are appearing all the time. For now, you can change the "Comments" on a modern ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible