Step 5
Test and Verify
Overview
With the gateway instance created and both policies applied, you’ll use Postman’s native MCP client to connect to the governed endpoint and verify that tool calls reach Salesforce.
Step 1 — Find your Consumer Endpoint
- In MCP Servers, click Salesforce SObject All
- Click the Instances tab
- Click the Headless 360 instance
- Copy the Consumer Endpoint URL — it will look like:
https://<your-gateway-host>/headless-360-all
Step 2 — Connect Postman to the MCP Server
- Open Postman and create a new MCP Request
- In the Server URL field, paste your Consumer Endpoint URL
- Set Transport to
Streamable HTTP - Go to the Authorization tab:
- Set Type to
Basic Auth - Username:
mcp-user - Password:
mcp-pass
- Set Type to
- Click Connect
Postman will establish an MCP session. Once connected, the session status will show Connected.
Step 3 — Discover available tools
Click the Tools tab in Postman. You should see the following tools exposed by the Salesforce SObject All server:
| # | Tool | Description |
|---|---|---|
| 1 | getRelatedRecords |
Retrieves child records related to a parent record by traversing relationships |
| 2 | listRecentSobjectRecords |
Returns records recently viewed or modified by the user |
| 3 | soqlQuery |
Executes a SOQL query to retrieve Salesforce records |
| 4 | find |
Text search across multiple objects simultaneously |
| 5 | getUserInfo |
Returns current user’s identity, role, and preferences |
| 6 | getObjectSchema |
Returns Salesforce schema information optimised for LLM consumption |
| 7 | createSobjectRecord |
Creates a new record in any Salesforce object |
| 8 | updateSobjectRecord |
Updates fields on an existing record by ID |
| 9 | updateRelatedRecord |
Updates a child record by navigating from a parent through a relationship |
| 10 | deleteSobjectRecord |
Permanently deletes a record by ID |
| 11 | deleteRelatedRecord |
Deletes a child record by navigating a relationship from a parent |
If you see the tools listed, the gateway is correctly proxying to Salesforce. ✓
Step 4 — Call the soqlQuery tool
- Click
soqlQueryin the Tools list - Fill in the input:
query:SELECT Id, Name FROM Account LIMIT 5
- Click Run Tool
The gateway will:
- Authenticate your Basic Auth credentials (inbound policy)
- Obtain a Salesforce OAuth2 token using Client Credentials (outbound policy)
- Forward the SOQL query to Salesforce
- Return the response
Expected result — a list of up to 5 Salesforce Account records.
Step 5 — Verify unauthenticated access is blocked
- In Postman, remove the Basic Auth credentials from the Authorization tab
- Click Connect again
You should receive a 401 Unauthorized error — the inbound Basic Authentication policy rejects the request before it reaches Salesforce. ✓
Troubleshooting
| Symptom | Resolution |
|---|---|
401 Unauthorized with correct credentials |
Verify the Basic Authentication policy is Active in the Inbound policies tab |
| Postman connects but Tools tab is empty | Wait 30 seconds for policy propagation and reconnect |
502 Bad Gateway |
Check the Credential Injection policy is Active in the Outbound policies tab |
What you’ve verified
- Postman connects to the MCP Server with Basic Auth
- Tools tab shows all 11 Salesforce SObject tools
soqlQueryreturns Salesforce Account records- Unauthenticated request returns
401
Continue to Summary →