--- title: "Execute Function" url: https://docs.catalyst.zoho.com/en/sdk/nodejs/v2/serverless/functions/execute-function/ description: "This page describes the method to execute functions in your NodeJS application with sample code snippets." last_updated: 2026-09-08T11:07:33Z service: Serverless type: general related_links: - name: "Execute Function - API" url: /en/api/code-reference/serverless/functions/execute-function/#ExecuteFunction - name: "Functions" url: /en/serverless/help/functions/introduction --- # Execute a Function > **Note:** This SDK is currently in deprecation. Migrate to [JavaScript SDK](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/serverless/functions/execute-function/) now. A function can be executed by calling the _execute()_ method in which the function ID 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/nodejs/v2/serverless/functions/get-component-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. **(function parameters)** The configuration can be set using the following code snippet: ```javascript //Create Configuration for function Execution let conf = { args: { Name: 'Amelia' } } ``` ### Execute function 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. ```javascript let functions = app.functions(); //Call Function with the function ID and the configuration let promiseResult = functions.execute(1510000000059262, conf); promiseResult.then((functionResponse) => { console.log(functionResponse); }); ``` > **Note:** You can also pass the function name as a string to the `execute()` method instead of using the function ID.