DEV Community

Discussion on: Integrating C# .NET and Salesforce's REST API

Collapse
 
areacode212 profile image
Prime Time Pauly G

Hey Rachel,

You actually can get to the Consumer Key & Consumer Secret again. From Salesforce Setup, you have to go to Apps->App Manager. That brings you to the "Lightning Experience App Manager". From that list, find the app, click the arrow on the right of the row, then click "View".

That said, I'm getting "invalid_grant" / "authentication failure" when I try to run this. I think the Connected App isn't set up correctly. I'm not seeing it in "Connected Apps OAuth Usage" or under my Profile in "OAuth Connected Apps". Is there anything else that needs to be set up for a new Connected App other than what you wrote in the article?

Collapse
 
areacode212 profile image
Prime Time Pauly G

Never mind, I was able to fix my issue by changing my login endpoint to the one that matches my actual sandbox (not test.salesforce.com, but xxxxx.my.salesforce.com)