--- title: "Get Function Instance" url: https://docs.catalyst.zoho.com/en/sdk/javascript/v1/serverless/functions/get-function-instance/ 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/get-component-instance/ - name: "iOS SDK" url: /en/sdk/ios/v2/serverless/functions/create-function-instance/ - name: "Android SDK" url: /en/sdk/android/v2/serverless/functions/create-function-instance/ - name: "Flutter SDK" url: /en/sdk/flutter/v2/serverless/functions/create-function-instance/ - name: "REST APIs" url: /en/api/code-reference/serverless/functions/execute-function/#ExecuteFunction repository: name: "Repository" url: https://github.com/catalystbyzoho/zcatalyst-sdk-js --- # Get Function Instance > **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. You can get the `functions` component reference as shown below. This will not fire a server-side call. You will refer to this component instance in various code snippets when working with the Functions component. ```javascript // Get a functions instance const functions = new Functions(); ``` > **Note:** - Passing an initialized app instance to a component determines the authentication scope it uses. - To perform an operation with user-level permissions, initialize the SDK with User scope, or with custom credentials, and pass that instance to the component. This runs the operation in the user's scope or custom credential scope instead of the default admin scope. ```javascript const functions = new Functions(app); ``` - If your Function or AppSail application needs both custom credentials and admin authentication at the same time, give each initialization a unique app name, otherwise the custom initialization can overwrite your existing admin credentials. - In all cases, explicitly pass the matching app instance to each component so it uses the intended authentication scope; if none is provided, the SDK defaults to the admin credentials.