Designer API
Control the Webflow Designer
variable.getName()
Retrieves the name of the variable.
1variable.getName(): Promise<string>;
Promise<string>
string
A Promise that resolves to a string with the variable name
1// Get Collection2const collection = await webflow.getDefaultVariableCollection()34// Get All Variables5const variables = await collection.getAllVariables()67// Get Value of first Variable8const variable = variables[0]9const value = await variable.getName()
Try this example
Checks for Authorization only