Get all variable collections

webflow.getAllVariableCollections()

Retrieves all variable collections for a site.

Syntax

webflow.getAllVariableCollections()

Returns

Promise<Array<VariableCollection>>

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

Example

const collections = webflow.getAllVariableCollections();
// returns an array of collection objects
// [
// {
// "id": "collection-4a393cee-14d6-d927-f2af-44169031a25b",
// },
// {
// "id": "collection-4a393cee-14d6-d927-f2af-44169031a49c",
// }
// ]

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadVariablesAnyAnyAnyAny