Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Salesforce by (11.9k points)

We have a system, where we want to push the records (e.g. Contact, Account, Opportunity) from our system to SalesForce.

To achieve this, we have used ForceToolKit for .Net. We are successfully pushing the contact records from our system to Salesforce.

First customer has to provide the consumer key and secret and upon providing these details, the user will be redirected to Salesforce login page for OAuth. We are storing the RefreshToken and it will be used at the time of Data push.

Here, if user provides incorrect consumer key, then it is redirecting to Salesforce login page and shows below message:

error=invalid_client_id&error_description=client%20identifier%20invalid

enter image description here

Now, we have to validate the Consumer key & secret before it redirects to Salesforce URL and check if it is valid or not.

Can anyone help me on how to achieve this?

1 Answer

0 votes
by (32.1k points)
edited by

The error can be due to a mismatch of URL which you rendered in Endpoint URL. This is the first reason.

The next reason is that it is considered as the method post or get. Also, it is that you have to use a request type. And consumer key secret key and username password this are the mandatory to get the access token.

Be a salesforce certified administrator by going for Intellipaat’s Salesforce course!

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...