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
Policy → Get
AI-generatedSummary
Retrieve a single Datto EDR policy by ID via GET Policies/{id}, optionally limiting the returned fields.
Inputs
- Policy ID (required) — ID of the policy to fetch. The node throws an error if it is empty.
- Options > Fields — Comma-separated list of fields to include in the response. Sent as the
fieldsarray in the LoopBack filter. - Options > Order — Sort order string. It is shown for this operation but isn't sent on a Get request.
- Options > Where (JSON) — Raw LoopBack where clause. It is shown for this operation but isn't sent on a Get request.
Output shape
One n8n item whose JSON is the policy record returned by the Datto EDR API.
Only Fields is applied (as a
filterquery parameter). Order and Where (JSON) are read but ignored for Get. A missing ID raises an error. With Continue On Fail enabled, errors are output as {error: message}. API errors such as 401, 403 and 404 are reported with descriptive messages.
Examples
Example 1: Fetch a policy's full configuration by ID
Resource: Policy, Operation: Get, Policy ID: an ID from a previous Get Many step (e.g. {{$json.id}})
Example 2: Retrieve only the policy name and ID
Policy ID set; Options > Fields: "id,name"