Call Action Chain

This action is used to start an action chain that has been defined in the same page, flow, or application.

Note:

You can call a JSON action chain from a JavaScript action chain using this action; however, you can't call a JavaScript action chain from a JSON action chain.

To call an action chain, you need to pass the following parameters:

Parameter Name Description
chain The name of the action chain to call. No prefix is required for page level action chains, but application level ones need to be prefixed with application: and flow level ones with flow:.
params An expression that maps to an array of parameters.

Here's an example of a call to an action chain with 2 input parameters:

const callChainResult = await Actions.callChain(context, {
        chain: 'MyActionChainToCall',
        params: {
              ip1: $application.variables.var1,
              ip2: $application.variables.var2
        },
});

Return Values

The call returns a result if the called action chain returns a result.