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
    • Variables
    • Variable Modes
  • Assets
  • Pages & Folders
  • Utilities
    • User Events & Notifications
    • App Intents & Connections
      • Set App Connection
      • Get App Connections
      • Remove App Connection
      • Get Current App Connection
      • Get Current App Connection Resource
  • Additional Resources
    • API Playground
    • FAQs
LogoLogo
Resources
Get started
On this page
  • element.getAppConnections()
  • Syntax
  • Returns
  • Example
  • Designer Ability
UtilitiesApp Intents & Connections

Get App Connections

Was this page helpful?
Previous

Remove App Connection

Next
Built with

element.getAppConnections()

Retrieve a list of App Connections associated with the selected element. Only App connections created by the current App will be returned.

Syntax

1getAppConnections(): Promise<Array<string>>

Returns

Promise<Array<string>>

A Promise that resolves to an array of App Connection string identifiers for the element-App connection.

Example

1const el = await webflow.getRootElement(); // Get Root Element
2
3// Check for an element
4if (!el || !el.children) throw new Error('Expected an element');
5
6// Create a form element
7const formEl = await el.append(webflow.elementPresets.FormForm);
8
9// Check for App Connections
10if (!formEl || !formEl.appConnections) {
11 throw new Error('App Connections not supported');
12}
13
14// Set App Connections
15await formEl.setAppConnection('myAwesomeAppManageFormElement');
16
17// Get App Connections
18const connections = await formEl.getAppConnections();
19
20// Expected return value
21// connections should return an array with the app connection set earlier:
22console.log(connections); // ['myAwesomeAppManageFormElement']

Try this example

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canAccessCanvasAnyAnyAnyAny