You can use Postman environments to work with multiple Salesforce orgs in parallel.
⚠️ Using environments means that you will store Salesforce credentials in clear in Postman. Do this at your own risks.
- Import the Template Environment
- Configure the Environment
- Change the Collection Authorization Type
- Authenticate with Salesforce
-
Open the master collection from the Salesforce Developers workspace with this link or using Postman's search bar.
-
Fork the Salesforce APIs Environment Template environment:
- Select the Environments tab.
- Click Salesforce APIs Environment Template.
- Click Fork.
- Enter a label for your fork (e.g.: “My fork”).
- Select the workspace that contains your working copy of the collection.
- Click Fork Environment.
-
Click on the “three dots” icon on the right and select Duplicate from the menu.
This creates a
Salesforce Environment Template Copy
template. -
Click Salesforce APIs Environment Template Copy.
-
Rename the environment with something meaningful in relation with your Salesforce org (e.g.: “Playground 1”).
-
Set values in the CURRENT VALUE column for the following variables:
Variable Current Value url
Either:
-https://MyDomainName--SandboxName.sandbox.my.salesforce.com
for sandboxes or Scratch orgs.
-https://MyDomainName.my.salesforce.com
for production, Trailhead Playground and Developer Edition orgs.username
Your username password
Your password secretToken
Your personal security token (if required by your org) -
Click Save.
-
Select your environment from the environment dropdown.
-
Navigate to the Collections tab and select your collection.
-
In the Authorization tab, select Bearer Token as the authorization type.
-
Enter
{{_accessToken}}
for the Token value. -
Click Save
- Open the collection’s Auth folder and select the SOAP Login request
- Click Send
At this point, if your environment is correctly set up, you should see a 200 OK
status. This means that you have successfully authenticated with Salesforce and that you can now use the other collection’s requests.