NinjaOne icon

NinjaOne

Consume NinjaOne API

Actions158

Location → Get Node Custom Fields 2

AI-generated

Overview

This node interacts with the NinjaOne API to retrieve custom fields associated with a specific Location resource. The operation "Get Node Custom Fields 2" fetches custom field values for a given node ID and location ID, optionally including inherited values based on a definition scope hierarchy.

Typical use cases include:

  • Retrieving detailed metadata or custom attributes assigned to a particular location within an IT management system.
  • Automating workflows that depend on custom configuration or classification data stored in NinjaOne locations.
  • Integrating location-specific custom field data into other systems or reports.

For example, you might use this node to get all custom fields for a location representing a physical office site, including inherited settings from parent definitions, to tailor asset management or compliance checks.

Properties

Name Meaning
Id Numeric identifier of the node whose custom fields are being retrieved.
Location Id Numeric identifier of the location for which custom fields are requested.
With Inheritance Boolean flag indicating whether to retrieve custom field values using definition scope hierarchy (i.e., include inherited values). Defaults to true.

Output

The node outputs an array of JSON objects, each containing the response from the NinjaOne API call for the requested custom fields. The structure corresponds directly to the API's returned data for custom fields on the specified node and location.

No binary data output is produced by this operation.

Dependencies

  • Requires an active NinjaOne API OAuth2 credential configured in n8n for authentication.
  • Depends on the NinjaOne API endpoint /v2/locations/{locationId}/nodes/{id}/custom-fields (implied by the operation name and parameters).
  • Network connectivity to the NinjaOne API service.

Troubleshooting

  • Missing or invalid credentials: Ensure the NinjaOne API OAuth2 credential is correctly set up and authorized.
  • Invalid IDs: Providing non-existent or incorrect Id or Location Id values will result in API errors or empty responses.
  • Binary data errors: Not applicable here since this operation does not handle binary data.
  • API rate limits or downtime: Temporary failures may occur if the NinjaOne API enforces rate limits or experiences outages; retry logic or error handling should be considered.
  • Error messages: If the node throws errors related to request failures, verify network access and credential validity.

Links and References

Discussion