Exec Action — Reference
Call a reusable action from the Server Connect Library and obtain its declared outputs.
Call a reusable action from the Server Connect Library and obtain its declared outputs.
Before you begin
Section titled “Before you begin”- An open Server Connect action. Runtime differences below refer to the installed Node.js and PHP implementations.
Exec Action
Section titled “Exec Action”Call a reusable action from the Server Connect Library and obtain its declared outputs.
Settings and execution
Section titled “Settings and execution”| Setting | Meaning |
|---|---|
| Name | Names the result returned by the library action in the caller’s scope. For example, calculation.total refers to the library’s total output when this step is named calculation. |
| Action | The Library action to execute. It must exist; the runtimes report an error for a missing library action. This is not a URL for an HTTP request. |
| Output | Includes the named library result in the caller’s response. It does not expose every internal value automatically. |
| Input Parameters | The fields defined by the selected Library action. Bind values to them; the called action reads them under $_PARAM. These fields depend on the chosen action rather than being a fixed list in this reference. |
Worked example
Section titled “Worked example”Define a Library action with an amount parameter and a Set Value named total using that parameter, with Output enabled. In the caller, add Exec Action named calculation, choose the library action and bind amount to 12.5. The caller can then read calculation.total.
Check the behavior and limits
Section titled “Check the behavior and limits”Only the library’s output data becomes this step’s result. Calling a library is distinct from Include Action and from calling a public API endpoint. Validate library parameters at the appropriate trusted boundary.
Continue with a task
Section titled “Continue with a task”Use the Server Connect guides when you need the surrounding project, data-loading or form procedure.
Check your result
Section titled “Check your result”You can configure Exec Action deliberately and verify the result and failure behavior described in this reference.