In part 1 of this post, you are getting that what is the Connected App, POSTMAN App? Also, you have done with your new "Salesforce Connected App" and a fresh new "Postman Account".
Okay, Guys, Let's go with our next steps to get the 'Access Token' & 'Refresh Token' with our Salesforce Connected App and Postman App.
Step 1 - Click on the 'New' button as seen in the image (Point 1).
You can also create a Collection (folder) where you can store your all API hitting history.
Fill in the 'Request Name' and select your collection to store your 'Access Token' &
'Refresh Token' in a place. You will understand in the last step why we are using the collection.
Press the 'Save' button.
Step 2 - Select the Authorization Type as 'oAuth 2.0' from the dropdown list (Point 1).
Press the 'Get New Access Token' button (Point 2).
Step 3 - When press the 'Get New Access Token' button you will get a pop-up window where will use some information.
Token Name - Any
Auth URL - https://login.salesforce.com/services/oauth2/authorize
Access Token URL - https://login.salesforce.com/services/oauth2/token
Client Id - As per your Salesforce Connected App (Consumer Key)
Client Secret - As per your Salesforce Connected App (Consumer Secret - Click to reveal the link to get the Consumer Key)
Step 4 - When pressing the 'Request Token' button you will get a new pop-up window for login into your Salesforce Org with its credential. This is the way that you are now going to give permission to the Postman for authorization of your Salesforce Org.
Token Name - Any
Auth URL - https://login.salesforce.com/services/oauth2/authorize
Access Token URL - https://login.salesforce.com/services/oauth2/token
Client Id - As per your Salesforce Connected App (Consumer Key)
Client Secret - As per your Salesforce Connected App (Consumer Secret - Click to reveal the link to get the Consumer Key)
Step 4 - When pressing the 'Request Token' button you will get a new pop-up window for login into your Salesforce Org with its credential. This is the way that you are now going to give permission to the Postman for authorization of your Salesforce Org.
Step 5 - Enter 'Verification Code' and then click on the 'Verify' button.
Step 6 - Now the new pop-up is again opens, click on the 'Allow' button.
Step 7 - Click on 'SFDC4STUDENTS' (Point 1) which is a collection created by you in Step 1.
Woohoo!! You have got the 'Access Token' & 'Refresh Token' as per your focus on this post.
Before Thank You for coming here, I want to tell you that maybe you will not feel confident about the 'TEST SALESFORCE CONNECTED APP WITH POSTMAN APP'. So try 1 or 2 times again because as per my experience when I understood this work then I was not confident the first time but when I tried on more times then I feel better than the first time.
Thanks & Regards.
It is really a great work and the way in which you are sharing the knowledge is excellent.Thanks for your informative article
ReplyDeleteCRM Software| CRM System | CRM | Best CRM Software