Execute the function

A function can be executed by calling the execute() method in which the function ID and the configuration (of type dictionary) are passed as parameters. To know more about the component instance function_service used below, please refer to this help section.

Before executing a function, you must set the configuration required for it. Here, the configuration specifies the function arguments and their values.

The unique functionID is passed as a parameter to the execute() method to call the function to be executed with the necessary configuration.

The configuration can be set using the following code snippet :

Parameters Used

Parameter Name Data Type Definition
function_ID Numeric A Mandatory parameter. Will store the unique ID the function to be executed.
function_config Object A Mandatory parameter. Will store the configuration of the function to be executed.
    
copy
function_service = app.functions() args = {"Name": "Amelia"} return_value = function_service.execute(5249000000015567, args)
Info :
  1. Refer to the SDK Scopes table to determine the required permission level for performing the above operation.

  2. You can also pass the function name as a string to the execute() method instead of using the function ID.

Last Updated 2025-05-07 13:47:01 +0530 +0530

ON THIS PAGE