Actions56
- API Call Actions
- Bundle Actions
- Community Actions
- Course Actions
- Group Actions
- Hub Actions
- Member Actions
- Module Actions
- Popup Actions
- Webhook Actions
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 dynamic variables associated with a particular hub template by specifying the template's name or ID. This is useful in scenarios where you want to programmatically access or manipulate template data within LearningSuite workflows, such as customizing content generation, automating template management, or integrating template data into other systems.
Practical example:
You have a LearningSuite hub template for onboarding emails, and you want to retrieve all the variables used in that template to dynamically fill them with user-specific data in an automated workflow.
Properties
| Name | Meaning |
|---|---|
| Template Name or ID | The identifier of the hub template whose variables you want to retrieve. You can select from a list loaded dynamically or specify an ID using an expression. |
Output
The node outputs a JSON array containing the variables defined in the specified hub template. Each item in the output represents a variable available in the template, typically including details such as variable names and possibly their descriptions or types (depending on the API response).
No binary data output is involved in this operation.
Dependencies
- Requires an active connection to the LearningSuite API via an API key credential.
- The node depends on the LearningSuite API base URL and authentication credentials configured in n8n.
- The property "Template Name or ID" uses a dynamic options loader method to fetch available templates from the LearningSuite API.
Troubleshooting
Common issues:
- No handler found error: If the node throws an error indicating no handler for the resource-operation pair, ensure that the resource is set to "Hub" and the operation to "Get Hub Template Variables".
- Invalid or missing template ID: If the template ID is incorrect or not provided, the API call will fail. Verify the template ID or use the dropdown to select a valid template.
- Authentication errors: Ensure the API key credential is correctly configured and has sufficient permissions to access hub templates.
Error messages:
"No handler for resource "hub" and operation "getTemplateVariables": Indicates a misconfiguration of resource or operation parameters.- API errors related to authorization or invalid template IDs will be passed through; check your credentials and input values.
Links and References
- LearningSuite API Documentation (general reference, as exact API docs are not included)
- n8n Expressions Documentation – for using expressions to specify template IDs dynamically