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. The function_service reference used in the code snippets below is the component instance created earlier.

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 :

args = { "Name": 'Amelia' } return_value = function_service.execute(5249000000015567, args)

Last Updated 2023-12-18 16:26:17 +0530 +0530