Return Salesforce data through an inbound Endpoint
Use an Immediate Inbound Payload when another system needs a response built from Salesforce data.
Create the Inbound Payload
Choose Inbound and Immediate during creation. The response must follow the Query Actions so it can use their output. An asynchronous acknowledgement cannot return the result of a Query that runs later.
Select HTTP Request and model the Body, Headers or Parameters that identify the requested record. Use incoming request values for this contract rather than expecting the external caller to populate manual-run Dynamic Inputs.
Query the records
Add a Query between HTTP Request and HTTP Response. Choose the object and map its filter values from the incoming request. Select the required fields and an intentional limit.
For a lookup, return one record or a bounded collection. Review what happens when the supplied identifier is missing or matches nothing.
Build HTTP Response
Select HTTP Response, set its Content Type and create the Body Elements. Map values from the earlier Query’s output using the available Action data.
For a collection, map an array Element to the repeating Query output, then map child Elements from the current array record. Keep private fields out of the response even if the Query can read them.
Expose the Endpoint
Under HTTP Request, create an Endpoint with its Site, Method and stable Endpoint Name. Copy the generated URL and document the required request values and response shape for the caller.
Test the response contract
Call the Endpoint with a valid test identifier. Confirm the Job’s HTTP Request values, Query output and generated HTTP Response match what the caller receives.
Test an unknown identifier and missing required input. Review the accessible fields and filters with the endpoint’s execution context before enabling production access.
If processing succeeds but the response is wrong, compare the Query output with the response mappings. If no Job is created, check the Site, generated route, method and package access.
