Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Sites → Get Variable

AI-generated

Overview

This node interacts with the Appwrite API to retrieve a specific variable from a site. It is useful for scenarios where you need to access configuration or environment variables associated with a particular site managed in Appwrite. For example, you might use this node to fetch API keys, feature flags, or other site-specific settings dynamically during workflow execution.

Use Case Examples

  1. Retrieve a variable by its ID from a given site to use its value in subsequent workflow steps.
  2. Fetch site-specific configuration variables to customize behavior based on the site context.

Properties

Name Meaning
Site ID The ID of the site from which to retrieve the variable.
Variable ID The ID of the variable to retrieve from the specified site.

Output

JSON

  • variable - The retrieved variable object from the specified site, containing its details and value.

Dependencies

  • Requires an Appwrite API key credential with access to the Sites service.

Troubleshooting

  • Ensure the Site ID and Variable ID are correct and exist in the Appwrite project; otherwise, the node will throw an error indicating the resource was not found.
  • Verify that the API key used has sufficient permissions to access the Sites and Variables endpoints.
  • Common error messages include authentication failures due to invalid API keys or permission issues, and resource not found errors if the IDs are incorrect.

Links

Discussion