Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The Offive Dev PnP is an open-source, community-driven initiative coordinated by SharePoint engineering. PnP includes development documentation, samples, reusable controls, and other relevant open-source initiatives related to SharePoint development that are closely involved with SharePoint engineering, but are not part of the official standard product or service offerings.
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. … not necessarily the PnP Management Shell app. …
1
vote
Check if a given modern team site has a connected group or not
Yes, you need to check the GroupId property as below:
using (ClientContext clientContext = new ClientContext("siteUrl"))
{
// authenticate
clientContext.Load(clientContext.Site, s => s.Grou …
4
votes
New-PnPSite - Check if site is allready created?
You can use the Get-PnPTenantSite command to check if a site collection exists or not as below:
$site = ""
Try
{
Write-Host "Checking, if site already exists..."
$site = Get-PnPTenantSite -U …
1
vote
Add-PnPView - Sort by Ascending order?
The correct column name for this document library is LinkFilename. If its a SharePoint list, you need to use LinkTitle
Modify the query as below:
$Query="<OrderBy><FieldRef Name='LinkFilename' /></O …
2
votes
Accepted
SPFx Angular Elements with @pnp/spfx generator
To use the angular elements with the latest version, you need to use an older version of Angular CLI as below:
npm install -g @pnp/generator-spfx @angular/[email protected]
or
npm install -g @pnp/generator-spfx … @angular/[email protected]
Reference - Angular elements in PnP SPFx generator …
3
votes
Accepted
Create Hub Sites using CSOM C# in SharePoint Online
To register a site as Hubsite, you can use the below code:
string tenantAdminSiteUrl = "https://tenant-admin.sharepoint.com/";
string userName = "[email protected]";
string password = …
1
vote
Accepted
PnPJS - MS Graph API - how to get group photo
You can use the getBlob method to get the image bytes as blob and then bind that to the HTML element somewhat as below. If you know a different way, you can use that as well:
private getGroupPhoto(gr …
1
vote
Accepted
CSOM: Unable to update or create content type - Value cannot be null. Parameter name: s
Reference - Breaking change on creating content types using CSOM - Value cannot be null
Temporary fix - Update to the latest version of PnP CSOM/PnP PowerShell (3.9.1905.2) from Nuget and then apply the …
0
votes
Accepted
Can I use PnP PowerShell to set Conditional Access Policy on individual sites?
It is not supported natively using the Set-PnPTenantSite commandlet, however you can use Get-PnPTenantSite commandlet to get the site collection object and then update it as per your requirement.
You …
2
votes
Accepted
Pnp powershell asking credentials again and again
Assuming that the same account has access to all the site collections in the csv file, you can simply ask the user for credentials using the Get-Credential method.
You can then pass these credential …
3
votes
Accepted
Retrieve column value (page property) by site ID from Site Pages list
You are on the right track. Based on the code that you posted in the question, am assuming that you are using pnpjs.
Using that, we can get the page properties as below:
pnp.sp.web.lists.getById(th …
2
votes
Accepted
Error while creating list item with multi-user field - pnp js / spfx
Code looks fine.
1) Just ensure that you are using the correct internal name of the column.
2) Secondly, ensure that you have set the column to Allow multiple values as below. This error usually oc …
4
votes
Accepted
Can i using PnP script Update our custom list items "Status" field without affecting the Mod...
Yes, you can use Get-PnPListItem with CAML query to fetch the based on your conditions and then update them using Set-PnPListItem and passing the SystemUpdate parameter which wont change the modified …
4
votes
PnPJS - Check if site collection exists
below import statement, we will be using the SPHttpClient provided by PnPJS to make a REST call to /_api/SP.Site.Exists endpoint to determine if a site collection exists or not
import { sp } from "@pnp … /sp";
import { SPHttpClient } from "@pnp/sp";
2) Modify your code as below, I created a helper method check if site collection exists or not and also used the render method, you can change it as per …
2
votes
Accepted
SPFX - cannot get actual label of managed metadata list field
PnP JS supports this endpoint which can used. … </Query>
</View>`
}).then((userDivision) => {
console.log(userDivision);
});
Also, ensure that you are importing it correctly as:
import { sp, RenderListDataParameters } from "@pnp …