webflow.getAllVariableCollections()

Retrieves all variable collections for a site.

Syntax

1webflow.getAllVariableCollections()

Returns

Promise<Array<VariableCollection>>

A Promise that resolves to an array of variable collection objects.

Example

1const collections = webflow.getAllVariableCollections();
2
3// returns an array of collection objects
4// [
5// {
6// "id": "collection-4a393cee-14d6-d927-f2af-44169031a25b",
7// },
8// {
9// "id": "collection-4a393cee-14d6-d927-f2af-44169031a49c",
10// }
11// ]

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadVariablesAnyAnyAnyAny
Built with