22 questions
0
votes
0
answers
13
views
Add content type from hub using managed identity
I have an API which creates and configures SharePoint Online site collections using PnPCore v1.15.0 in an Azure Function. It was previously successfully used in a cross-tenant scenario using an app ...
0
votes
0
answers
170
views
PnP Core - It is not possible to change the properties of a ListItem
I am trying to change the properties of a ListItem, but this does not work or the properties are not saved.
Unfortunately, I do not receive an error message.
I have already tried to update the ...
0
votes
1
answer
493
views
Connect Sharepoint with c# via PnPCore
I use method GetWebLoginClientContext to access Sharepoint with MFA.
It was perfect since multiple users will use this program and i didn't want user to write any password/got any credential within ...
1
vote
1
answer
3k
views
.NET 8.0 Console application which connect to SharePoint online using PnP Core SDK, am i doing things correctly?
I want to create a .net 8.0 console application which connect to SharePoint online tenant using PnP core SDK. now i did not find any sample code, so i developed this console application:-
using ...
1
vote
1
answer
917
views
How to filter SharePoint listitems with PnP Core SDK
I'm unable to find a good example of reading sharepoint listitems and filtering on a custom column with the PNP.Core sdk library in C#.
I could filter on Title:
var listItems = await ...
1
vote
0
answers
323
views
Get multiple list items with Person field "Email' property loaded
I would like to fetch all SharePoint list items, which have a Person field and see the person's email.
When using a default query from the docs, the Email property of the Person field is not loaded:
...
0
votes
0
answers
255
views
Assigning Roles to User in SharePoint using PnPCore
I have the below issue which I fight for an extensive amount of time:
I develop a small Azure Function that accepts information for a SharePoint site and grants a Contribute role to certain user. What ...
0
votes
1
answer
1k
views
Azure function dependency injection invocation exception
Update 02-03-2023 2
Found a workaround that fixed the issue for me. Posted it as an answer.
Update 02-03-2023 1
I have managed to pinpoint that the exception occurs when setting the certificate in ...
1
vote
0
answers
283
views
PnP Core SDK, how to share a specific folder (and subfolders) with a specific group of users?
My goal is to share some folders to specific users groups.
Groups can be AZ Security Groups or Sharepoint Groups.
So, then I can add an user to a group and automatically that user can access their ...
2
votes
1
answer
1k
views
PNP CORE SDK : How to get the file properties of a list item
Here is my request working with SHAREPOINT REST API:
_api/web/lists/getByTitle('Commercial')/Items?$expand=File&$select=Id,File/ServerRelativeUrl
I want to do the equivalent of this with PNP CORE ...
1
vote
1
answer
695
views
PnP Core .Net Access subfolder inside my Documents Folder in SharePoint
Currently implementing Code to Access a specific Folder called "Customer" which is inside my Documents Folder in Sharepoint. Whatever I tried it wont work..
var list = await pnpContext.Web....