DEV Community

Integrating C# .NET and Salesforce's REST API

Rachel Soderberg on April 30, 2020

In my previous Salesforce series we learned how to perform authentication, login, run queries, and create, update, or delete records using the Sale...
Collapse
 
chadrs profile image
chad-rs

Did the post on performing the query ever happen? I couldn't find it.

Collapse
 
rachelsoderberg profile image
Rachel Soderberg
Collapse
 
rachelsoderberg profile image
Rachel Soderberg

Hey there! I was actually going to write and release that today, I've had a hectic couple of weeks and time got away from me :) Keep an eye out for that soon!

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)

Collapse
 
marilometa profile image
Marilo Meta

Hi,

I am trying to connect a WebAPI with my Salesforce Sandbox environment (with oauth2 protocol)
the logic I followed to do it is on your link: dev.to/rachelsoderberg/integrating...

I get a BadRequest as response on this part of code:

Collapse
 
joarath profile image
joarath

FYI: You need to append your API token to the password.

{"password", Password + ApiToken}

Collapse
 
ramyach profile image
Ramyach

Do you have source code GitHub for Salesforce integration using ASP.net.