Action References
AddToResponseAction
Purpose Copy selected context values into the final response.
When to use it
afterBuildOutput(before send)
Key fields
| Field | Type | Description |
|---|---|---|
context | [ContextData] | Names and MScript values to project into response. |
Example
{
"id": "a300-add-response",
"extendClassName": "AddToResponseAction",
"name": "exposeTotals",
"context": [
{ "contextName": "grandTotal", "contextValue": "this.grandTotal" },
{ "contextName": "discountRate", "contextValue": "this.discountRate" }
]
}
Was this page helpful?
Built with Documentation.AI
Last updated 1 day ago