NinjaOne icon

NinjaOne

Consume NinjaOne API

Actions158

Document Templates → Get Document Templates With Attributes

AI-generated

Overview

This node operation "Get Document Templates With Attributes" retrieves document templates from the NinjaOne API, including their associated attributes. It is useful for workflows that need to fetch and process document templates dynamically, such as generating reports, automating documentation, or integrating template data into other systems.

For example, you might use this node to:

  • List all available document templates filtered by name.
  • Retrieve detailed information about templates including technician roles allowed to use them.
  • Automate document generation based on specific templates fetched at runtime.

Properties

Name Meaning
Template Name (Optional) Filter to retrieve document templates matching this name.
Include Technician Roles Boolean flag to include allowed technician roles in the response. Defaults to false.

Output

The output is a JSON array where each item contains the retrieved document template data with its attributes. The exact structure depends on the NinjaOne API response but typically includes template details such as ID, name, description, and optionally the allowed technician roles if requested.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the NinjaOne API using OAuth2 authentication.
  • The node expects the NinjaOne API credentials to be configured in n8n.
  • Network access to the NinjaOne API endpoint is necessary.

Troubleshooting

  • No binary data exists on item!: This error does not apply here since this operation does not handle binary data.
  • API request failures: Common issues include invalid or expired API tokens, network connectivity problems, or incorrect parameter usage. Ensure the NinjaOne API credentials are valid and have sufficient permissions.
  • Empty results: If no templates are returned, verify the "Template Name" filter value or try without it to get all templates.
  • Include Technician Roles flag: Setting this to true may increase response size; ensure your workflow can handle larger payloads.

Links and References

Discussion