Set Up the Connect API Postman Collection
To set up the Salesforce Data Cloud Connect REST API Postman collection, fork, configure, and authenticate the collection.
- Use the Postman web app or download and install the Postman desktop app.
- Fork the collection in Postman.
- On the collection's Variables tab, assign a value to the
loginUrl
collection variable based on your Salesforce org type.
-
- Keep
https://login.salesforce.com
if you are using a production org, Trailhead Playground, or Developer Edition org.
- Keep
-
- Use
https://test.salesforce.com
for sandboxes or scratch orgs.
- Use
-
- Use a custom My Domain base URL for an org with a custom domain.
- Save your changes.
- On the collection's Authorization tab, click Get New Access Token.
- When prompted, log in to your Salesforce org and allow access to Salesforce APIs Collection for Postman.
- From the token details view, copy the value of the
instance_url
field. - Click Use Token.
- On the collection's Variables tab, replace the
dne_cdpInstanceUrl
current value with the value copied from theinstance_url
field. - Save your changes.
Note: Postman's test functionality parses the response body and sets the variables for dne_cdpAuthToken
and dne_cdpInstanceUrl
that are used in subsequent Connect API requests.