webflow.createVariableCollection(collectionName)

Creates a new variable collection with the given name.

Syntax

1webflow.createVariableCollection(collectionName: string)

Parameters

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

Returns

Promise<VariableCollection>

The newly created collection object.

Example

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

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canModifyVariablesAnyMainCanvasDesign
Built with