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
LogoLogo
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
    • Variables
    • Variable Modes
  • Assets
      • Get all Asset folders
      • Create an Asset folder
      • Get Asset folder name
  • Pages & Folders
  • Utilities
    • User Events & Notifications
    • App Intents & Connections
  • Additional Resources
    • API Playground
    • FAQs
Resources
Get started
On this page
  • assetFolder.getName()
AssetsCreating & Retrieving Asset Folders

Get Asset folder name

Was this page helpful?
Previous

Pages & Folders

Next
Built with

assetFolder.getName()

Get the name of the current AssetFolder object

Syntax

1AssetFolder.getName(): Promise<string>

Returns

String

A Promise that returns the name of the AssetFolder object

Example

1// Create Asset Folder
2const newFolder = await webflow.createAssetFolder(name)
3const folderName = await newFolder.getName()
4
5console.log(folderName)

Try this example

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canAccessAssetsAnyAnyAnyAny