For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Resources
Get started
ReferenceGuidesExamplesChangelog
ReferenceGuidesExamplesChangelog
  • Designer API
    • Introduction
    • Getting Started
    • Webflow CLI
    • Error Handling
    • App Modes
  • Elements
    • Creating & Retrieving Elements
    • Element Properties & Methods
    • Element Types & Methods
  • Styles
    • Managing Style Properties
    • Managing Variable Modes
  • Components
  • Variables & Collections
    • Variable Collections
        • Get collection name
        • Set variable collection name
        • Move collection after target
        • Move collection before target
    • Variables
    • Variable Modes
  • Assets
  • Pages & Folders
  • Utilities
    • User Events & Notifications
    • App Intents & Connections
  • Additional Resources
    • API Playground
    • FAQs
LogoLogo
Resources
Get started
On this page
  • collection.getName()
  • Syntax
  • Returns
  • Example
  • Designer Ability
Variables & CollectionsVariable CollectionsManaging Variable Collections

Get collection name

Was this page helpful?
Previous

Set a variable collection name

Next
Built with

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)

Try this example

Designer Ability

Checks for Authorization only

Designer AbilityLocaleBranchWorkflowSitemode
canReadVariablesAnyAnyAnyAny