LearningSuite icon

LearningSuite

Interact with LearningSuite API (powered by agentur-systeme.de)

Overview

This node integrates with the LearningSuite API, specifically focusing on the "Hub" resource and its operation to retrieve template variables. It allows users to fetch variables associated with a particular hub template by specifying the template's name or ID. This is useful in scenarios where dynamic content generation or template customization is needed based on predefined variables within LearningSuite hubs.

Practical examples include:

  • Automatically retrieving all variables for a selected hub template to populate forms or documents.
  • Using the fetched variables to customize communications or workflows dynamically within n8n.

Properties

Name Meaning
Template Name or ID The identifier of the hub template to retrieve variables from. Choose from a list loaded dynamically or specify an ID via expression.

Output

The node outputs a JSON array containing the variables associated with the specified hub template. Each item in the output represents a variable with its details as provided by the LearningSuite API. The exact structure depends on the API response but typically includes variable names, types, default values, and descriptions.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the LearningSuite API.
  • Needs an API authentication credential configured in n8n (referred to generically as an API key credential).
  • The base URL for the API is taken from the credential configuration.
  • The node relies on internal handler functions mapped to the "hub" resource and "getTemplateVariables" operation to perform the API call.

Troubleshooting

  • Common issues:

    • Specifying an invalid or non-existent template ID will likely result in an error from the API.
    • Network connectivity problems or incorrect API credentials can cause authentication failures.
    • If the handler for the resource-operation pair is missing or misconfigured, the node will throw an error indicating no handler found.
  • Error messages:

    • "No handler for resource "hub" and operation "getTemplateVariables": Indicates that the node does not have an implementation for this operation; verify the operation name and node version.
    • API errors returned from LearningSuite (e.g., 404 Not Found, 401 Unauthorized) should be checked by reviewing the template ID and API credentials.
    • "Unknown error": Generic fallback error; check logs and ensure proper configuration.
  • Resolutions:

    • Confirm the template ID exists and is accessible.
    • Verify API credentials and base URL are correctly set.
    • Ensure the node version supports the requested operation.

Links and References

Discussion