Questions tagged [console-application]
Questions related to SharePoint Console Applications
69 questions
2votes
1answer
5kviews
Getting error "The app principal does not exist" when connecting to SharePoint Online from a C# Console App
Having recently moved our intranet from SharePoint on-premises to SharePoint Online, I'm now trying to get a bunch of C# Console Apps (.NET Framework) to work with the new version of the sites. I ...
0votes
1answer
940views
How to upload file from SharePoint online library to S3 bucket using c#
I tried below code and able to upload file in S3 bucket but whenever i open file its show message that its corrupted and file format is not correct but file is getting uploaded static void Main(...
0votes
2answers
2kviews
Connect to SharePoint Online from our console application when the "DisableCustomAppAuthentication is set to true"
We have a lot of .Net console applications which run inside windows on-premises servers, which connect to SharePoint online using ClientID & ClientSecret and perform some background tasks, as ...
3votes
2answers
4kviews
Unable to connect to my online site collection using c# console application
I have the following console application to connect to my online site:- using Microsoft.SharePoint.Client; using System; using System.Linq; using System.Security; using System.Linq; using System.Text; ...
0votes
1answer
415views
Error uploading file to SharePoint using .NET Framework 4.5
I have a problem uploading files to SharePoint from a .NET console application. I get the error "Cannot write data to transport connection: An existing connection has been forced to break by the ...
0votes
0answers
238views
Sync between database tables and SharePoint online lists using ODBC. best approach to do so
We have 5 tables inside a database and we want to sync the data inside those tables to SharePoint online 5 lists. The database tables can be accessed using ODBC. So what are the approaches we have to ...
0votes
1answer
42views
Approaches to integrate our Service Desk system with SharePoint Lists
We have a Service Desk system and using its REST API and on other Scenarios using its Database we need to fetch data from the Service Desk system and populate SharePoint lists. so I am trying to find ...
0votes
2answers
55views
Operations on a ContentTypeCollection object throwing an unexpected exception
I am developing a Console application to programmatically download documents from a SP site among other things. I am trying to retrieve the fields of a content type of a SP list using CSOM : using (...
0votes
4answers
2kviews
Authentication with SharePoint Online in Microsoft 365 and simple console application
I need your help with my small application. I need to create easy console application which will sign into SharePoint Online and download some documents from library. When I am doing this on older ...
0votes
0answers
198views
403-forbidden error running sharepoint online search rest api from c# console appl
I am trying to run below SharePoint Online Search REST API in C# console application but receiving error. https://xxxxxx.sharepoint.com/sites/scr/_api/search/query?querytext=%27scStatusOWSCHCS=Expired%...
0votes
1answer
1kviews
How to programatically add/remove person from SharePoint Group in C# Console App?
Dear stackoverflow community: What we have? There is a SharePoint site with various folders and subfolders etc. Excpect for the default SharePoint groups (and their permission levels)- for some of ...
0votes
1answer
79views
Update a list item using Client side object module code and prevent sharepoint list workflow 2013 from been executed
I have a custom list inside our sharepoint online classic team site collection. and i define a workflow 2013 on the custom list. where the workflow will be executed when creating and editing the list ...
1vote
2answers
856views
Uploading files to sharepoint with clientContext giving Error
I am trying to upload documents to a specified sharepoint location but I am getting the error System.Net.WebException: 'The remote server returned an error: (400) Bad Request.' I believe this has ...
0votes
1answer
87views
share point document version still incrementing even after disabling the versioning and minor versioning
I have a SP 2013 document library with content approval and versioning enabled. Now through a console application I am disabling the content approval and versioning to updated the document and after ...
1vote
3answers
4kviews
How to Update Author (Created By) field in SharePoint 2016 using CSOM Programatically
I want to Update the Author field of Folder property/item property. I have seen many posts online, I tried different link but I didn't get the Success. I followed This Link. I didn't get any error ...