webflow.getVariableCollectionById(collectionId)

Retrieves a variable collection by its ID.

Syntax

1webflow.getVariableCollectionById(collectionId: string)

Parameters

  • collectionId: string - The ID of the variable collection to retrieve.

Returns

Promise<VariableCollection>

The a promise that resolves to a variable collection object.

Example

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

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadVariablesAnyAnyAnyAny
Built with