NinjaOne icon

NinjaOne

Consume NinjaOne API

Actions158

Related Items → Get Related Items With Entity Type

AI-generated

Overview

This node interacts with the NinjaOne API to retrieve related items filtered by a specified entity type. It is useful when you want to fetch entities that are related to other records within the NinjaOne platform, such as organizations, documents, locations, or technicians. For example, you might use this node to get all documents related to a specific organization or all attachments linked to a particular technician.

Properties

Name Meaning
Related Entity Type The type of related entity to retrieve. Options include: ORGANIZATION, DOCUMENT, LOCATION, NODE, ATTACHMENT, TECHNICIAN, CREDENTIAL, CHECKLIST, END USER, CONTACT, KB DOCUMENT

Output

The node outputs an array of JSON objects representing the related items fetched from the NinjaOne API. Each item in the output corresponds to one related entity matching the selected entity type. The exact structure of each JSON object depends on the NinjaOne API response for the related entity type requested.

No binary data output is indicated for this operation.

Dependencies

  • Requires an active NinjaOne API OAuth2 credential configured in n8n.
  • The node uses the NinjaOne REST API endpoints and requires network access to NinjaOne services.
  • No additional environment variables are explicitly required beyond the API authentication setup.

Troubleshooting

  • Missing or invalid API credentials: Ensure the NinjaOne OAuth2 API credential is correctly set up and authorized.
  • No binary data error: Not applicable here since this operation does not handle binary data.
  • API request failures: Check network connectivity and NinjaOne API status if requests fail.
  • Invalid entity type selection: Make sure the "Related Entity Type" property is set to one of the supported options.
  • Error messages from API: These will be returned in the output JSON under an error field if the node is set to continue on failure.

Links and References

Discussion