--- title: "Execute Function" url: https://docs.catalyst.zoho.com/en/sdk/javascript/v1/serverless/functions/execute-function/ description: "This page describes the method to execute functions in your application with sample code snippets." last_updated: 2026-09-09T10:45:38Z service: Serverless type: general related_links: - name: "Catalyst Serverless" url: /en/serverless/ - name: "Functions Help" url: /en/serverless/help/functions/introduction/ - name: "Java SDK" url: /en/sdk/java/v1/serverless/functions/execute-function/ - name: "Python SDK" url: /en/sdk/python/v1/serverless/functions/execute-function/ - name: "iOS SDK" url: /en/sdk/ios/v2/serverless/functions/execute-function/ - name: "Android SDK" url: /en/sdk/android/v2/serverless/functions/execute-function/ - name: "Flutter SDK" url: /en/sdk/flutter/v2/serverless/functions/execute-function/ - name: "REST APIs" url: /en/api/code-reference/serverless/functions/execute-function/#ExecuteFunction repository: name: "Repository" url: https://github.com/catalystbyzoho/zcatalyst-sdk-js --- # Execute Function > **Note:** Ensure you have installed the [required package](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/serverless/functions/overview/#prerequisites) to use this SDK method. A function can be executed by calling the `execute()` method in which the [function ID](https://docs.catalyst.zoho.com/en/serverless/help/functions/implementation/#create-a-function) and configuration (of type JSON) are passed as parameters. The `functions` reference used in the code snippets below is the [component instance](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/serverless/functions/get-function-instance/). ### Create a Function Configuration (JSON) Before executing a function, you must set the configuration required for it. Here, the configuration specifies the function arguments and their values. An example to set the configuration is detailed in the following code snippet ```javascript // Create Configuration for function Execution const conf = { args: { Name: 'Amelia' } } ``` The unique **function ID** is passed as a parameter to the `execute()` function to call the function to be executed with the necessary configuration. The promise returned here will be resolved to an object which is a JSON. The `functions` reference used in the code below is the [component instance](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/serverless/functions/get-function-instance/). > **Note:** You can also pass the function name as a string to the `execute()` method instead of using the function ID. ```javascript const functionResponse = await functions.execute(1510000000059262,conf); console.log(functionResponse); ```