Invoke

Syntax

Invoke(ModuleName: String, FunctionName: String, Params: Array)

Parameters

ModuleName. Unit name with code in the Python language. The name is case-sensitive.

FunctionName. The name of executed function. The name is case-sensitive

Params. Array of parameter values that must be sent to executed function.

Description

It executes function in the Python language and returns result of its work.

Comments

The module name in the ModuleName parameter is specified without extension. The ModuleName is searched in current folder from which analytics platform is launched.

If the executed function does not contain input parameters, do not specify Params. Values of parameters in Params can be sent as a separate array or enumerated via a comma.

If the function has parameters with default values, and it is required to send only part of parameters, use named parameters. Create parameters with required names, set their values and send them to the Invoke function.

See also:

Functions Available in Expression Editor │ Working with PythonPython.Invoke