Connect postman to salesforce
Today, I want to capture notes that I learnt from trailhead academy on connecting postman to a salesforce org.
To make postman allow changes at Salesforce org, we have to enable CORS policy in Salesforce. See below what does CORS mean.
CORS- Cross Origin Resource Sharing
It is a browser feature that controls how resources are requested from one site to another site. By configuring CORS, it enables special permissions for other external websites to access our salesforce data. In this case, we are enabling CORS for postman to access salesforce.
- From setup ==> search for CORS ==> Add https://*.postman.co and https://*.postman.com URL
- After that, in postman desktop -Do below steps one by one.
- Create a separate workspace for Salesforce APIs to play around.
- Search for Salesforce APIs. It does list out all the available collections.
- Fork βSalesforce Platform APIβ and it will available to your local postman workspace.
- After that, go to βAuthorizationβ click on βGenerate tokenβ and copy βinstanceβ URL.
- Configure β_endpointβ value from variable tab as βinstanceβ URL
- All set and thatβs it. You can play around whatever requests that are available.