Questions tagged [office-dev-pnp]

Office 365 Developer Patterns and Practices

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Set-PnPTraceLog with Azure PowerShell Function

Thre are lots of post regarding how to use PnP with Azure PowerShell Function below are few links https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-pnp-...
0
votes
0answers
17 views

SharePoint online Throttling issue

Recently I faced throttling issue and based on below article we should decorate request with User Agent https://docs.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-...
1
vote
1answer
74 views

Using SharePointPnPCoreOnline with Azure Function(v1)

I am creating my first Azure Function(V1) with SharePointPnPCoreOnline package and Visual Studio 2019/2017. When I created a function project without SharePointPnPCoreOnline its working without any ...
0
votes
1answer
32 views

Using SharePointPnPCoreOnline with Azure Function

I am creating my first Azure Function(with .net core 3.0) with SharePointPnPCoreOnline package. When I created a function project without SharePointPnPCoreOnline its working without any error. But ...
0
votes
1answer
31 views

Azure Logic App with SharePoint Connection

I am creating my first logic app which connects to SharePoint and adds entries into some sharepoint list. Whenever I create a SharePoint Connection it adds below resource to my logic app. { "type":...
0
votes
1answer
61 views

pnp schema template issue - how to inlcude “new and existing guests” option in the schema

I am not finding the right XML schema to include it in my PNP provisioning template. How can I include settings called "New and existing guests" for external sharing while provisioning a site using ...
0
votes
0answers
21 views

Need to convert a sharepoint list field value from FieldValuesAsText to FieldValuesAsHtml in pnp-sp spfx webpart

I need lookupfield value,peoplepicker field value and enrich multiline text field value in one pnp-sp get call and display it in a table columnd so i used let item: [] = await siteweb.lists....
0
votes
1answer
44 views

Get Enriched MultiLineText Field value without loosing its HTML property and Display it without html tag using spfx pnp/sp

I need to get enriched multi line text field value of a list item in SharePoint online SPFX web-part and display the field value in a table column without loosing its html property also hiding html ...
1
vote
2answers
68 views

Logic app deployment from DEV to PROD

I am new to Logic Apps so this might be a very basic question. Here is what I have done, I have created a very basic Logic App which will trigger when a new item is created in SharePoint List and ...
1
vote
3answers
2k views

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

I installed these packages: @pnp/logging @pnp/common @pnp/odata @pnp/sp npm i @pnp/logging @pnp/common @pnp/odata @pnp/sp --save and tried this: import { sp } from '@pnp/sp'; public ...
2
votes
0answers
39 views

SPFx Command Bar not working after deployment

I am working on SPFx Command Bar and everything is working as expected when I do 'gulp serve' and run it in localhost. But when I tried to deploy the same in AppCatalog and installed the same to my ...
0
votes
1answer
35 views

Setup development environment for SharePoint online

I would like to create a development environment for SharePoint online based on agile on azure DevOps with sandbox for testing purposes and code review. We migrated to the SharePoint online and I am ...
0
votes
0answers
26 views

Updating the timestamp of the subscriber site

We are using Content Type Hub and all of the sites are showing below error on Content-Type Publishing Error Log. I have blurred the name of Syndication Item but its the same for all error. I would ...
0
votes
1answer
76 views

pnp.js folder.moveTo() error: Microsoft.SharePoint.Client.ResourceNotFoundException

According to the pnp.js docs at: https://github.com/pnp/pnpjs/blob/dev/packages/sp/src/folders.ts there is a method called moveTo() which presumably moves a folder to a destination. However, the ...
0
votes
1answer
18 views

Not able to see the Label against which Auto Policy has been created

I have followed below steps in order to create label and policy. Create a new Retention labels Publish Policy with "Auto-apply a label" Now when I go back and see the published policy don't see ...
1
vote
1answer
46 views

Not able to apply SharePoint Retention Policy

I am new to SharePoint Online Data Governance and followed below steps Created a new site Created a new Retention Policy with Specific SharePoint site When I was at step #2 got below error No ...
0
votes
1answer
270 views

Invalid Command for o365 spo login CLI

I am setting Azure DevOps pipleline for my SharePoint framework project and followed below steps, https://social.technet.microsoft.com/wiki/contents/articles/52777.sharepoint-framework-how-to-...
0
votes
0answers
53 views

Programmatically create and Add Owners and Members to O365 Group, no emails are sent

I'm using the code found in OfficeDevPnP.Core to create a new UnifiedGroup. UnifiedGroupsUtitlity.CreateUnifiedGroup. My code is below. UnifiedGroupsUtility.CreateUnifiedGroup("CSOM Site Creation", ...
0
votes
2answers
226 views

Add properties to modern site programmatically

I want to add some metadata to my modern Team Site. I can achieve this by simply adding columns to the Site Pages library in the site contents. Now I want to do the same thing programmatically using ...
0
votes
1answer
574 views

Using PowerShell to connect to Project Online with CSOM under MFA

I am trying to interact with a PWA on a tenant for which I have no choice but to use MFA. I'm trying to use the OfficeDev-PnP library which supports MFA, but can't get it to work with Project Online. ...
0
votes
1answer
88 views

How to use Filter property of SPOSitePropertiesEnumerableFilter class

I would like to know how "Filter" property can be use. This is a string value but I do not see any example anywhere on how to use this property. I would really appreciate if someone can share some ...
1
vote
2answers
42 views

Can not delete closed readonly site with SharePoint Online

I have a site which has site policy associated. based on my policy site is closed and marked as read-only. When I try to delete the site from Admin got an error "Couldn't delete site" One of the ...
0
votes
0answers
51 views

Can not delete site with AppOnly Permission

I am trying to delete the site with app only permissions. Below is my Provider Hosted app permissions <AppPermissionRequests AllowAppOnlyPolicy="true" > <AppPermissionRequest Scope="...
0
votes
0answers
101 views

Disable welcome email for 365 groups/modern team sites

Is there any similar for c# for those PowerShell command? Set-UnifiedGroup -Identity "DynO365" -UnifiedGroupWelcomeMessageEnable:$false I need to disable the welcome email when adding users from ...
0
votes
0answers
703 views

Could not load type 'Microsoft.SharePoint.Administration.DesignPackageType' from assembly 'Microsoft.SharePoint.Client'

When I try to load "Microsoft.Online.SharePoint.PowerShell" got below error. Not sure where I am going wrong here. Microsoft.Online.SharePoint.PowerShell 16.0.8924.1200 ...
1
vote
4answers
420 views

Can not install SharePoint Online Management Shell

I am trying to install "SharePoint Online Management Shell" when I do so got below error. This application requires the following to be installed: PowerShell 3.0. When I checked my ...
0
votes
1answer
206 views

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

When creating or updating content types using PnP/CSOM we are encountering the following error upon executing the query: Microsoft.SharePoint.Client.ServerException: Value cannot be null. ...
1
vote
1answer
324 views

Adding a listview web part - modern team sites

I need to add a list view web part with c# like below: My best guess is using PnP is the wat to go. I would think something like below is the first part (correct me if I am wrong): var page = ...
0
votes
0answers
11 views

Office Web AddIn with SharePoint connection

I am developing Office Web AddIn and would like to connect to SharePoint. Currently I am following below link to develop the AddIn. https://docs.microsoft.com/en-us/office/dev/add-ins/quickstarts/...
0
votes
1answer
54 views

How to get deleted site collections in SharePoint Online

Is there any way to get all the deleted site collections in SharePoint online using CSOM C# / PNP C# ?. In power shell it is possible, but I am looking in c#. Thanks in advance...
1
vote
3answers
123 views

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

I will be creating a C# console app that will be executed by a windows task. The purpose of this console app is to prepare a JSON file for bulk user profile update. what is the best way to store SPO ...
0
votes
1answer
176 views

SharePoint Online Gear menu changed recently

Recently I see the gear icon menu has been changed. Is this something I can revert to old? Can someone help me in getting the official announcements on this by Microsoft?
0
votes
1answer
135 views

Creating Sharerpoint online communication site with app-only authentication

I am trying to create a communication site using PnP CreateSiteAsync extension. When I authenticate using app-only credential the site is not created and I receive {"SiteId":"","SiteStatus":3,"SiteUrl"...
1
vote
1answer
116 views

How many maximum number of sites will be returned from GetSitePropertiesFromSharePoint

I can find a number of articles on how to get all sites in SharePoint online and everyone referring to the below method https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-csom/...
1
vote
0answers
18 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
22 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
258 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
30 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
38 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: ...
3
votes
1answer
3k 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
33 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
87 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
508 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
623 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.
1
vote
1answer
154 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
234 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
81 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
283 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" ?&...
3
votes
3answers
742 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
200 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 ...