Actions60
- Agent Actions
- Alert Actions
- Box Actions
- Extension Actions
- Flag Actions
- Location Actions
- Organization Actions
- Policy Actions
- Quarantined File Actions
- Report Actions
- Suppression Rule Actions
- Target Actions
- User Actions
- Webhook Actions
Target → Get Many
AI-generatedSummary
Retrieves target groups from Datto EDR (the Targets model), either all of them or up to a limit, with optional filtering, sorting and field selection.
Inputs
- Return All — If true, pages through the API 100 records at a time until all matching targets are fetched. It errors if the result exceeds 200 pages. Default false.
- Limit — Maximum number of targets to return when Return All is off. Minimum 1, default 50.
- Filters — Zero or more conditions, each with a Field (Name or Organization ID), an Operator (equals, not equals, contains, greater/less than, in list), and a Value. Conditions with an empty value are ignored. Numeric-looking values are converted to numbers for eq/gt/gte/lt/lte. Contains wraps the value in % wildcards. In List splits the value on commas.
- Options > Order — LoopBack sort string, e.g. "createdOn DESC".
- Options > Fields — Comma-separated list of fields to include in each returned record.
- Options > Where (JSON) — Raw LoopBack where clause as JSON. It is merged over the Filters, so its keys override filter conditions on the same field. Invalid JSON is silently ignored.
Output shape
One n8n item per target record returned by the API's Targets endpoint, containing the target's JSON fields.
If nothing matches, a single item is emitted: {found: 0, resource, operation}. The request runs once per input item. With Continue On Fail, errors are emitted as {error: message}. Authentication uses the Datto EDR API credential, and its Base URL must end in /api.
Examples
Example 1: List every target group in one organization
Return All = true; Filters: Field Organization, Operator Equals, Value
Example 2: Find targets whose name contains 'Servers', newest first
Return All = false, Limit = 50; Filters: Name Contains 'Servers'; Options > Order = 'createdOn DESC'.
Example 3: Get only IDs and names of targets
Return All = true; Options > Fields = 'id,name'.