> 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 # GetFunctionBuilderlessProduction # Package: functions # Namespace: FunctionBuilderlessProductions # Method link: https://dev.wix.com/docs/api-reference/business-management/functions/builderless-productions/get-function-builderless-production.md ## Permission Scopes: Manage Functions: SCOPE.DC-FUNCTIONS.MANAGE-FUNCTIONS ## Introduction Retrieves a function builderless production. --- ## REST API ### Schema ``` Method: getFunctionBuilderlessProduction Description: Retrieves a function builderless production. URL: https://www.wixapis.com/functions/v1/function-builderless-productions/{functionId} Method: GET # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: functionId Method parameters: param name: functionId | type: none | required: true Return type: GetFunctionBuilderlessProductionResponse - name: functionBuilderlessProduction | type: FunctionBuilderlessProduction | description: The requested function builderless production. - name: id | type: string | description: Function builderless production GUID. This is the same as the associated function's GUID. - name: appId | type: string | description: App GUID of the business solution that created the function type the function builderless production is based on. - name: formValues | type: Map | description: Form values used to create the function. Retrieve the required form values by calling 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` - ONE-OF: - name: nullValue | type: | description: - name: numberValue | type: number | description: - name: stringValue | type: string | description: - name: boolValue | type: boolean | description: - name: structValue | type: object | description: - name: listValue | type: ListValue | description: - name: values | type: array | description: - name: function | type: Function | description: Function created from the function builderless production. - name: id | type: string | description: Function GUID. - name: createdDate | type: string | description: Date and time the function was created. - name: functionExtensionId | type: string | description: The function's app extension GUID. - name: functionName | type: string | description: Function name. - name: activationStatus | type: ActivationStatus | description: Activation status - enum: - ACTIVE: Function is activated. - INACTIVE: Function is deactivated. - DRAFT: Function is saved but has never been activated. - name: appId | type: string | description: GUID of the app that defines the function. - name: functionExtensionName | type: string | description: The function's app extension name. - name: functionTemplateExtensionId | type: string | description: Function template extension id - name: formTemplateExtensionId | type: string | description: Form template extension id - name: updatedDate | type: string | description: Date and time the function was last updated. - name: revision | type: string | description: Revision number that increases with every update. - name: functionSpiConfiguration | type: FunctionSpiConfiguration | description: Service plugin configuration for the function. - name: id | type: string | description: SpiConfiguration GUID. - name: revision | type: string | description: SpiConfiguration revision. - name: createdDate | type: string | description: Date and time the SpiConfiguration was created. - name: updatedDate | type: string | description: Date and time the SpiConfiguration was last updated. - name: functionId | type: string | description: Function GUID - name: configuration | type: object | description: Function SPI configuration dev center component payload. - name: automationIds | type: array | description: Automations created from the function builderless production. ``` ### Examples ### Get Function Builderless Production ```curl curl -X GET \ https://www.wixapis.com/functions/v1/function-builderless-productions/ecab2bd0-daeb-449b-8dc4-0e1f12bbbfce \ -H 'Authorization: ' \ -H 'Content-Type: application/json' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.functions.FunctionBuilderlessProductions.getFunctionBuilderlessProduction(functionId) Description: Retrieves a function builderless production. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: functionId Method parameters: param name: functionId | type: string | description: GUID of the function to retrieve the builderless production for. | required: true Return type: PROMISE - name: _id | type: string | description: Function builderless production GUID. This is the same as the associated function's GUID. - name: appId | type: string | description: App GUID of the business solution that created the function type the function builderless production is based on. - name: formValues | type: Map | description: Form values used to create the function. Retrieve the required form values by calling 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` - ONE-OF: - name: nullValue | type: | description: - name: numberValue | type: number | description: - name: stringValue | type: string | description: - name: boolValue | type: boolean | description: - name: structValue | type: object | description: - name: listValue | type: ListValue | description: - name: values | type: array | description: - name: function | type: Function | description: Function created from the function builderless production. - name: _id | type: string | description: Function GUID. - name: _createdDate | type: Date | description: Date and time the function was created. - name: functionExtensionId | type: string | description: The function's app extension GUID. - name: functionName | type: string | description: Function name. - name: activationStatus | type: ActivationStatus | description: Activation status - enum: - ACTIVE: Function is activated. - INACTIVE: Function is deactivated. - DRAFT: Function is saved but has never been activated. - name: appId | type: string | description: GUID of the app that defines the function. - name: functionExtensionName | type: string | description: The function's app extension name. - name: functionTemplateExtensionId | type: string | description: Function template extension id - name: formTemplateExtensionId | type: string | description: Form template extension id - name: _updatedDate | type: Date | description: Date and time the function was last updated. - name: revision | type: string | description: Revision number that increases with every update. - name: functionSpiConfiguration | type: FunctionSpiConfiguration | description: Service plugin configuration for the function. - name: _id | type: string | description: SpiConfiguration GUID. - name: revision | type: string | description: SpiConfiguration revision. - name: _createdDate | type: Date | description: Date and time the SpiConfiguration was created. - name: _updatedDate | type: Date | description: Date and time the SpiConfiguration was last updated. - name: functionId | type: string | description: Function GUID - name: configuration | type: object | description: Function SPI configuration dev center component payload. - name: automationIds | type: array | description: Automations created from the function builderless production. ``` ### Examples ### getFunctionBuilderlessProduction ```javascript import { functionBuilderlessProductions } from '@wix/functions'; async function getFunctionBuilderlessProduction(functionId) { const response = await functionBuilderlessProductions.getFunctionBuilderlessProduction(functionId); }; ``` ### getFunctionBuilderlessProduction (with elevated permissions) ```javascript import { functionBuilderlessProductions } from '@wix/functions'; import { auth } from '@wix/essentials'; async function myGetFunctionBuilderlessProductionMethod(functionId) { const elevatedGetFunctionBuilderlessProduction = auth.elevate(functionBuilderlessProductions.getFunctionBuilderlessProduction); const response = await elevatedGetFunctionBuilderlessProduction(functionId); } ``` ### getFunctionBuilderlessProduction (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { functionBuilderlessProductions } from '@wix/functions'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { functionBuilderlessProductions }, // Include the auth strategy and host as relevant }); async function getFunctionBuilderlessProduction(functionId) { const response = await myWixClient.functionBuilderlessProductions.getFunctionBuilderlessProduction(functionId); }; ``` ---