Call Variable

This action is used to call a method of an InstanceFactory variable that has been defined in the current scope (flow, page, or application). Using this action with any other type results in an error.

You can call any method on the current instance associated with the InstanceFactory variable, including asynchronous ones. However, since actions are by design synchronous, this action will wait for the asynchronous call to resolve before proceeding to the next action in the chain.

Here's an example of a call to an InstanceFactory variable's method:

const getRangeResult = $page.variables.myBook.instance.getRange($page.variables.range);

Return Values

The result payload is equivalent to whatever the function returns (which may be undefined if there is no return). If the function returns a promise, the result payload will be whatever is resolved in the promise.