> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: About Function Creation and Activation ## Article: About Function Creation and Activation ## Article Link: https://dev.wix.com/docs/api-reference/business-management/functions/about-function-creation-and-activation.md ## Article Content: # About Function Creation and Activation This article explains the different approaches for creating and activating functions using the Functions APIs. For an overview of function components and architecture, see [Function Architecture](https://dev.wix.com/docs/api-reference/business-management/functions/function-architecture.md). Once you've chosen your function type or template, you need to define the function's logic. For some function types, you also need to define its [service plugin configuration](https://dev.wix.com/docs/api-reference/business-management/functions/about-wix-functions-apis.md#terminology). Once you've defined these things, you can create your function. After creating a function, activate it to make it live. ## Quick creation and configuration Wix provides 2 streamlined approaches for creating functions that combine function creation, logic attachment, and service plugin configuration: - **[Basic creation and configuration](#basic-creation-and-configuration)**: To build functions from blank function types or templates. - **[Builderless creation and configuration](#builderless-creation-and-configuration)**: For functions built from templates. These methods eliminate the need to call multiple APIs separately, making function creation more efficient for developers. > **Note:** Each function template is compatible with either the basic flow or the builderless flow, but not both. Function templates that you can use in the builderless flow are those that contain a `formTemplateExtensionId`. ### Basic creation and configuration Create a function that's ready to use by calling [Create Function Production](https://dev.wix.com/docs/api-reference/business-management/functions/function-productions/create-function-production.md). This combines creating a function, attaching a function method (and the logic defined in the automation) to it, and configuring the function's service plugin configuration. Depending on the function type, you may still need to edit its logic or service plugin configuration before you can activate it. ### Builderless creation and configuration Create a function that's ready to use by calling [Create Function Builderless Production](https://dev.wix.com/docs/api-reference/business-management/functions/builderless-productions/create-function-builderless-production.md). This combines creating a function, attaching a function method (and the logic defined in the automation) to it, and configuring the function's service plugin configuration. Builderless creation is often more efficient than basic creation, but it's only possible if the template you want to use contains a `formTemplateExtensionId`. > **Notes:** > - To retrieve the form values required for a builderless creation, call the Form Schema API's [List Forms](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/list-forms.md) method, specifying the following parameters: > - `namespace`: `wix.function_template.form` > - `formIds`: An array that contains the function template's `formTemplateExtensionId` > - `kind`: `EXTENSION` > - You can update functions created this way by calling [Update Function Builderless Production](https://dev.wix.com/docs/api-reference/business-management/functions/builderless-productions/update-function-builderless-production.md). You can also use the other Functions APIs to update the function, but after doing so you can no longer update the function using Update Function Builderless Production. You can activate functions created this way immediately. ## Function activation and execution Activating a function means that it will run when triggered by the business solution. Activate a function by calling [Upsert Function Activation](https://dev.wix.com/docs/api-reference/business-management/functions/function-activations/upsert-function-activation.md). This creates a function activation that you can delete to deactivate the function. Any changes to the function will only take effect if you call Upsert Function Activation again. ## See also - [Function Architecture](https://dev.wix.com/docs/api-reference/business-management/functions/function-architecture.md) - [About Wix Functions APIs](https://dev.wix.com/docs/api-reference/business-management/functions/about-wix-functions-apis.md) - [About Service Plugins and Wix Functions](https://dev.wix.com/docs/api-reference/business-management/functions/about-service-plugins-and-wix-functions.md) - [Supported Function Types](https://dev.wix.com/docs/api-reference/business-management/functions/supported-function-types.md) - [Sample Flows](https://dev.wix.com/docs/api-reference/business-management/functions/sample-flows.md)