collection.getName()

Retrieves the name of the variable collection.

Syntax

1collection.getName(): Promise<string>

Returns

Promise< string>

A Promise that resolves to a string of the Variable Collection’s name

Example

1// Get Collection
2const defaultVariableCollection = await webflow.getDefaultVariableCollection();
3
4// Get Collection Name
5const collectionName = await defaultVariableCollection?.getName()
6console.log(collectionName)

Designer Ability

Checks for Authorization only

Designer AbilityLocaleBranchWorkflowSitemode
canReadVariablesAnyAnyAnyAny