Understand how to generate an access token for Salesforce using Postman.

Understand how to generate an access token for Salesforce using Postman.

Step-by-Step Guide:


Go to Salesforce Setup:

  • In the Quick Find box, search for OpenID.
  • Under OpenID, enable the Allow OAuth Username-Password Flows option for your users.


Create a New Connected App:

  • Go to App Manager and click New Connected App.
  • Set the Callback URL to https://login.salesforce.com.
  • Under OAuth Scopes, select Full Access and Offline Access.
  • Save the Connected App.


Access Consumer Details:

  • Once the Connected app is saved, navigate to the Consumer Details section and copy the Client ID and Client Secret.


Reset Security Token:

  • Go to your Profile Settings and find the Reset My Security Token option.
  • Reset the token, which will be sent to your registered email address.


Open Postman and Create a New Request:

  • In Postman, create a New Request.
  • Set the request type to POST.
  • Use the following endpoint URL for the request:
  • https://test.salesforce.com/services/oauth2/token?grant_type=password&client_id={clientId}&client_secret={clientSecret}&username={UserName}&password={Password}{SecurityToken}
  • Replace {clientId}, {clientSecret}, {UserName}, {Password}, and {SecurityToken} with the actual values from Salesforce.
  • Set the Authorization type to Inherit from Parent in Postman
  • After entering all the details, click Send to authenticate and obtain the access token.


Then It will give you an Access Token along with the instance_url


Here is an example:

For detailed and step by step Video: https://www.youtube.com/watch?v=4lImNgIKDRw



要查看或添加评论,请登录

Shashikant Tripathi ??的更多文章

社区洞察

其他会员也浏览了