Configure an Inbound Payload that returns Salesforce data
Use an Immediate Inbound Payload when another system should request selected Salesforce data and receive it in the same HTTP response.
Build the sequence HTTP Request → Query → HTTP Response. Additional processing can be inserted when needed, subject to Action order and transaction rules.
Create the Inbound Payload
Choose Inbound in New Payload and select Immediate before saving. The firing mode is fixed after creation in the v1.53 editor.
Queueable and Batchable send an early response before later Queries run, so they cannot return those Query results in that response.
Model the request
Select HTTP Request and define the Parameters, Headers or Body values that identify the requested data. Configure the Endpoint route and method through the Payload's Endpoint configuration.
For example, a payment-status endpoint can receive a session identifier as a parameter. Keep the parameter name stable once callers depend on it.
Confirm the Site and execution user's access. See Configure Endpoints.
Query Salesforce
Select the plus between HTTP Request and HTTP Response and choose Query. Select the object, limit and sort order, then configure a filter using Payload Data from HTTP Request.
Use a stable matching key and return only the needed records. Add child relationships if the response needs related collections.
Queries are individual Actions. They are not configured inside a Response-side Data Queries tab in the new workspace.
Build the response
Select HTTP Response and configure its Content Type. Model the response Body and map its Elements from Payload Data, selecting the Query Action and required fields.
For a collection, configure an Array and map its children from the current Query record. Define the contract for no matching records and optional values rather than assuming every request finds a record.
Verify what callers receive
Call the actual Endpoint with a known identifier, an unknown identifier and an invalid or missing input. Compare the HTTP response with the Query data recorded on the Job.
Check field exposure and runtime permissions using the actual execution identity. Only return data the caller should receive.
