How to generate an access token to access salesforce org
We will assist you with this article to obtain OAuth2 tokens from the Salesforce REST API as quickly as possible.
We attempt to make the learning process as simple as possible. 🙂
To start with, you must create an account in Salesforce. You can use your paid Salesforce account if you already have one. If not then, go to the Salesforce Developer Edition and establish a new dev account. Do not establish a free trial account since free trial accounts do not always allow you to enable the API in your Salesforce account. To generate tokens, you must first log in to your account and create a Connected App.
(A) Create a Connected App
Recommended by LinkedIn
Now, We will require Consumer Key, Consumer Secret, UserName (i.e. Email id), Password, and Security Token.
To obtain Security Token
Note: In salesforce, if the User’s Profile is API enabled then a Security token is not needed.
(B) Obtain accessToken using Postman.
Paste your credentials which you was saved like
grant_type = passwor
client_id = 3MVG**********tIS2
client_secret = CB3A********16
username = <<your username >>
password = << your org password >> + << your security token>>d
With the help of this blog, you will be able to successfully create a Connected Application and generate an access token for your Salesforce account.
Follow us for more such articles...