Show answerHide answer
Correct answer: A Check the Send OnlyAdditional Input checkbox, and the following/ value pairs to Additional input:
Explanation
SummaryThe requirement is to pass specific data nodes from the Integration Procedure's pipeline as discrete parameters to an Apex method via a Remote Action. The Apex method expects named parameters (AccountId and ProductId), not a monolithic JSON object. The correct configuration must explicitly map each pipeline value to its corresponding Apex method parameter.
Correct Option
A. Check the Send Only Additional Input checkbox, and add the following Key/Value pairs to Additional input:
This is the correct configuration. The "Send Only Additional Input" option ensures that only the explicitly defined key/value pairs in the "Additional Input" section are sent to the Apex method. Here, you would create two entries:
Key: accountId, Value: {%AccountId%}
Key: productId, Value: {%Details:ProductId%}
This maps the pipeline data directly to the expected Apex method parameters, ensuring they are passed by name correctly.
Incorrect Option
B. Set Return Only Additional Output to true, and add the following Key/Value pairs to additional input.
"Return Only Additional Output" controls what is returned from the action and stored in the pipeline, not what is sent to the action. Enabling this would not help in sending the correct input parameters to the Apex method and might even strip the response if not configured properly on the output side.
C. Check the DataRaptor Transform checkbox, and add the following Key/Value pairs to Output JSON Path:
The "DataRaptor Transform" checkbox is used to transform the response from the Apex call using a DataRaptor. It has no bearing on how the input parameters are structured or sent to the Apex method. The "Output JSON Path" is for mapping the action's result, not its input.
D. Add the following to Send JSON Path: accountId: %AccountId% ProductId: %Details:ProductId%
The "Send JSON Path" is used to send a single, structured JSON object as the input to the remote service. An Apex Remote Action expecting discrete named parameters will not be able to deserialize this single JSON string into its separate parameters correctly. The "Additional Input" method is the standard and correct way to pass multiple discrete parameters.
Reference
Salesforce OmniStudio Developer Guide: Remote Action

