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:
...
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-...
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="...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
2
votes
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',
...
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 ...
1
vote
Accepted
'SharePointTheme' does not contain a definition for 'customtheme'
As per this reference SharePointTheme.cs, SharePointTheme enum has below values only:
namespace OfficeDevPnP.Core.Enums
{
public enum SharePointTheme
{
Blue,
Orange,
...
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 ...
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 ...
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 ...
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 ...
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;
}
...
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
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 ...
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 ...
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 = "[email protected]";
string password = "password";
string ...
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
office-dev-pnp × 75sharepoint-online × 46
pnp × 20
csom × 15
office-365 × 10
spfx × 10
pnp-powershell × 10
pnp-provision × 10
office-365-developer × 8
powershell × 6
spfx-webparts × 4
sharepoint-rest-api × 3
authentication × 3
pnp-js-core × 3
development × 2
azure × 2
microsoft-graph × 2
sitepages × 2
provisioning × 2
modern-team-site × 2
pnpjs × 2
azure-functions × 2
governance × 2
npm × 2
logic-app × 2