Questions tagged [pnp-framework]

11 questions
1
vote
0 answers

I want to retrieve remote provisioning template from SharePoint library and then provision it using pnp framework 1.12.0 to a client tenant

I'm working on a .NET6 web api, and i use the pnp framework in order to provision remotely SharePoint templates to client tenant, for the templates i store them in a SharePoint library and i want to access them. i tried this code for that but i got…
Jamal Soft
  • 11
  • 1
1
vote
1 answer

Unable to update modern "Image" list item field using CSOM SharePoint

I am using CSOM API to update fields in a SharePoint list. I can update all fields fine, I just can't update or add to the "Image" Field. This is a new field type added in late 2020, separate from the "Hyperlink/Picture" field type. I see in the…
Mooseman
  • 21
  • 3
0
votes
0 answers

Connect to Sharepoint Online with Pnp Framework

I can't authenticate with Sharepoint online from my c# app. I've spent a couple days reading online and trying code. I keep getting a 403 Forbidden error. Here's what I've done so far to configure the environment: Created a self-signed cert. For…
USMC6072
  • 268
  • 2
  • 14
0
votes
0 answers

How to use OneColumnFullWidth section in sharepoint site template

I have created a site template using PNP framework:
Alias Varghese
  • 2,104
  • 3
  • 24
  • 52
0
votes
1 answer

Set default values in SharePoint Columns for a specific document folder

I am attempting to set default values for columns in a document list in SharePoint using the PnP.Core SDK. I can successfully set the values and then query them and get the default values back: private async Task SetFolderDefaultValues(IFolder…
0
votes
0 answers

SharePoint CSOM: The type of data is different than the one expected

Attempting to access an Office 365 SharePoint online site with the latest CSOM library version gives this error during a file copy operation although it does complete the operation successfully. System.InvalidOperationException HResult=0x80131509 …
Adam
  • 4,590
  • 10
  • 51
  • 84
0
votes
0 answers

When trying to restore an item from RecycleBin, I get "The attempted operation is prohibited because it exceeds the list view threshold."

I have following C# code and I have around 700k items in SecondStage RecycleBin. Any help would really appreciable. using System.Diagnostics; using Microsoft.Extensions.Logging; using Microsoft.SharePoint.Client; using PnP.Framework; internal class…
Kishan
  • 73
  • 9
0
votes
1 answer

Why do I get 401 Unauthorized when granting access via Azure AD App-Only?

I followed this article but I modified the sample code a bit to use GetContextAsync instead of GetAzureADAppOnlyAuthenticatedContext, I get the error "The remote server returned an error: (401) Unauthorized." every single time. AuthenticationManager…
Jack Le
  • 353
  • 2
  • 9
0
votes
0 answers

Token failed : 401 Forbidden Error connecting to Sharepoint using pnpframework

I am writing a web app that I would like to have access to Sharepoint Document Libraries from a particular site using the currently logged on user credentials. I have looked at a number of articles that suggest using the PnP Framework and using a…
Darren M
  • 65
  • 1
  • 8
0
votes
1 answer

How to query SharePoint Term Store using App only credential in C#

I am trying to build an application that gets terms from a term store in SharePoint Online, using App only permissions. For that, I was hoping to leverage the PnP Framework SDK. I know for a fact that, currently, the Graph API does not support term…
0
votes
2 answers

Upload file to the SharePoint site with Azure App credentials

I have Registered Azure Application that have full control permissions to the SharePoint site and these variables SharePoint Site Url TenantId ClientId ClientSecret I need to upload a document to the SharePoint Site Folder. I tried to use PnP…
Muflix
  • 6,192
  • 17
  • 77
  • 153