Execute JavaScript
Executing JavaScript is a request type that lies within the Internal Content Integration, facilitating the invocation of JavaScript functions. This request type comprises three essential parameters: FunctionName, FunctionParameter, and FunctionPayload.
The FunctionName parameter is a string field intended to pass the corresponding function name used within the FunctionPayload.
FunctionParameter represents the data field through which parameters are conveyed to the JavaScript function, requiring the parameters to be passed in JSON format.
FunctionPayload serves as the parameter designated for authoring JavaScript code to be executed dynamically at runtime, facilitating the attainment of desired outputs through its utilization.
Example
FunctionName | AddNumbers |
FunctionParameter | {"a":1,"b":2} |
FunctionPayload | function AddNumbers(data) { let c=parseInt(data.a)+parseInt(data.b); return c; } |