Create a variable collection

webflow.createVariableCollection(collectionName)

Creates a new variable collection with the given name.

Syntax

webflow.createVariableCollection(collectionName: string)

Parameters

  • collectionName: string - The name of the variable collection to create.

Returns

Promise<VariableCollection>

The newly created collection object.

Example

const collection = webflow.createVariableCollection("My Collection");
// returns a collection object
// {"id": "collection-4a393cee-14d6-d927-f2af-44169031a25b"}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canModifyVariablesAnyMainCanvasDesign