956 questions
1
vote
0
answers
34
views
Remove or replace sensitivity labels without using Graph Metered API
I want to remove or replace sensitivity labels from SharePoint, OneDrive and Exchange without using the Microsoft Graph Metered API.
According to the following article, it seems this is not possible ...
0
votes
1
answer
337
views
Sharepoint Basic auth authentication effect SharePointOnlineCredentials login method?
I'm wondering if the announcement of Basic auth deprecation for SP online mentioned here
https://learn.microsoft.com/en-us/sharepoint/technical-reference/basic-auth-is-being-deprecated
affects the use ...
0
votes
1
answer
43
views
File Not Found error when adding a content type in SharePoint using CSOM
I am trying to add a content type from the root web to a sub site.
First, I am just trying to add the content type by name
if (!list.ContentTypeExistsByName(ContentType))
{
list....
0
votes
1
answer
69
views
Dynamically add hyperlink to sharepoint document library subfolder in list
How can I add a link to a list item column that is of type hyperlink. The link should be a link to a subfolder in a document library.
What the program does it creates a new subfolder in a document ...
0
votes
0
answers
84
views
Microsoft.SharePoint.Client (CSOM) API in a C# application, but I keep receiving a 401 Unauthorized error
I am trying to use the Microsoft.SharePoint.Client (CSOM) API in a C# application, but I keep receiving a 401 Unauthorized error.
Within Azure, I created an App Registration and a secret key with the ...
0
votes
0
answers
128
views
Bypass MFA for App-Only authentication with Project Online (CSOM): Encountering 'User Not Found in Active Directory or Project DB' Error
Issue
We are attempting to access Project Online data in Project Permission mode using app-only authentication, specifically to bypass MFA for programmatic access, as we aim for continuous, automated ...
0
votes
1
answer
264
views
How do I resolve this exception thrown while trying to do CRUD operations on CSOM?
How do I resolve this exception thrown while trying to do CRUD operations on CSOM?
Let me break this down for you. CRUD, of course, means "Create Read Update and Delete". CSOM is the tech ...
0
votes
1
answer
628
views
Getting error while calling the sharepoint API for List Data - List Items Data
I'm getting this error while calling the API for getting list Data using PostMan
https://hostname.sharepoint.com/sites/random_site/_api/web/lists(guid'be7ca91-2715-4b86-8299-7925f99b7536')/items
for ...
-1
votes
1
answer
61
views
How to upload files to subfolders for sharepoint but have no right to the home page with CSOM for c#
I upload a excel file to the subfolder of the sharepoint, my account can access the subfolder:
https://inteltechcorp.sharepoint.com/sites/inteltechShared/Shared%20Documents/Forms/AllItems.aspx?...
3
votes
1
answer
970
views
How to check if SharePoint URL exists?
Let's say we have the following SharePoint working URL:
https://mywebsite.sharepoint.com/_layouts/15/Test.aspx
The following code works for determining if the URL works or not unless the user is ...
0
votes
1
answer
44
views
ClientContext API will not return items in Teams SharePoint site, works fine in SharePoint Online
Would there be a difference in using the 'older' SharePoint ClientContext/CSOM based API against a site in SharePoint Online versus one that is a part of a Team?
I have a bit of code that works just ...
0
votes
0
answers
60
views
What is RoleAssignment, RoleDefinition, RoleBinding in Sharepoint On-premise? How to remove a user from the permission list at site level?
I'm struggling with removing permission with the User type (not Sharepoint group type) at the site level but I'm struggling with these terms to find solutions.
When I open the central admin site, in ...
0
votes
1
answer
570
views
Can't upload a file to sharepoint site's file directory using CSOM C# console app
I am trying to upload a file to a specific site's file directory in my org's SharePoint. I created an app on https://OrgTenant.sharepoint.com/sites/MySite/_layouts/15/appregnew.aspx. Then, I gave it ...
2
votes
1
answer
319
views
Is there a way to programmatically tell when Project has finished Publishing to Project Server?
I have a tool that is going to open a MS Project file off the Project Web App (PWA/Project Server). and make some changes. I then need to save the file and publish the changes before closing it and ...
0
votes
0
answers
76
views
COM interop returns ERROR_FILE_NOT_FOUND
I have a C++ non-managed program calling into a C# DLL using COM interop to access a sharepoint server using SharePoint CSOM.
Calling from C++ returns hr == ERROR_FILE_NOT_FOUND.
Calling the same DLL ...
0
votes
1
answer
1k
views
Connecting to SharePoint subscription edition on-premise using CSOM in net6
I have SharePoint subscription on-premise edition.
Is there a way to connect to this instance using net6, csom and windows authentication?
I created console app and 'nuget' installed
<...
0
votes
0
answers
833
views
"The SSL connection could not be established" while debugging SharePoint API in Visual Studio
I've been working in a sandbox SharePoint site and using PnP.Framework and Microsoft.SharePointOnline.CSOM to build something my company can use for managing files programatically.
The following code ...
0
votes
1
answer
204
views
How to Read Document Template Xml Mapping value
I am using word document template, when I am upload document to document library in SharePoint online, column values are not set automatically.
I found that column mappings are broken that's why it is ...
0
votes
0
answers
246
views
Weird behavior of ExecuteQuery() - "Input string was not in a correct format."
Until last Friday I was using the following powershell script to manipulate lists on Sharepoint Online using CSOM with no problems.
$spOcredentials = New-Object Microsoft.SharePoint.Client....
1
vote
1
answer
720
views
Sharepoint Online & Azure Tokens
I'm trying to authorise login for a c# app that uses CSOM to query Sharepoint lists and pnp.core to get the client context.
I have an app registration with a client secret. The registration has the ...
0
votes
1
answer
849
views
Access SharePoint API using CSOM from .NET Standard
I am trying to create a .NET core console app that can access a Office 365 SharePoint site. I'm use the recommended auth manager from the PnP Framework to try to establish a connection. I followed the ...
2
votes
0
answers
998
views
multi factor authentication to access a sharepoint site using c# console application
I have been trying to access SP using MFA. I have been receiving a series of errors following the implementation. Does anyone have a source to an available cod with all necessary assemblies that I can ...
1
vote
0
answers
195
views
SharePoint Online reports error file is locked for exclusive use (by check-out user) using CSOM
I am working on a Word Add-In that exports a PDF file from a Word document to a SPO list and assigns ContentType and some SharePoint meta data to the new PDF file.
The list is configured with:
...
0
votes
1
answer
49
views
Project Online COM/Odata call in MS Project VSTO Addin using current user context
I am developing a MS Project VSTO Addin through which I need to perform Project Online ODATA and CSOM calls. Is it possible that as the user is already authenticated using the Project Professional ...
0
votes
0
answers
57
views
Error trying to connect to a sharepoint site using CSOM with .Net Standard
I'm trying to do this: https://learn.microsoft.com/es-es/sharepoint/dev/sp-add-ins/using-csom-for-dotnet-standard
The user is my Office 365 account that has MFA enabled so I have created an app ...