function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Scott SteesyScott Steesy 

Bulk API 2.0 logon

I have a C# desktop application that walks a customer through gathering data into a nice clean dataset and then lets them either insert it into Salesforce, or get data in Salesforce to compare with it.
I has worked for many years using the SOAP API (v30) for logon and getting the list of object types, and the Bulk API (v30) for the inserting or query of data.
I recently became aware the Bulk API will cease to function in Summer '22 and has been replaced with the Bulk API 2.0. I've spent a week witht he documentation and I think I have the code for the REST calls correct, but I can't get anything to work as I always get a 401 error.
Today I found that the Bulk API 2.0 doesn't accept the token for the SOAP API logon, and that I have to use OAuth 2 for logon. I have serched and searched and can't find a single example for doing that in a desktop app to just logon to Salesforce. Everything seems to assume you're writing an "application" that plugs into the Salesforce cloud instance for a specific organization, whereas my app is used by many people each from a different organization. I have no idea how to proceed.