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
Location → Get
AI-generatedSummary
Retrieves a single Datto EDR Location (target group) record by ID via GET Locations/{id}, optionally restricting returned fields.
Inputs
- Location ID (required) — ID of the location to fetch. Used in the request path; an empty value throws an error.
- Options > Fields — Comma-separated list of fields to include in the response. Sent as a LoopBack filter 'fields' array.
- Options > Order — Sort order string shown in the options, but ignored by Get (only used for Get Many).
- Options > Where (JSON) — Raw LoopBack where clause shown in the options, but ignored by Get since only fields and include are sent.
Output shape
One output item containing the location record as JSON (one item per input item).
If Fields is set, only those fields are returned. A 404 for an unknown ID raises a Datto EDR API error unless Continue On Fail is enabled, in which case an item with an 'error' message is emitted. Requires the credential Base URL to end with /api.
Examples
Example 1: Fetch a location's full details by ID
Resource: Location, Operation: Get, Location ID: an ID from a previous Get Many step.
Example 2: Retrieve only the name of a location
Location ID set; Options > Fields: id,name.