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 Many
AI-generatedSummary
Retrieves a list of policy records from Datto EDR (the Policies model), optionally filtered, sorted, and limited to selected fields, with either a capped count or full pagination.
Inputs
- Return All — If true, pages through the API (100 per request, up to 200 pages) and returns every match. Errors if more than 200 pages are returned; add a filter to narrow results.
- Limit — Max results to return when Return All is off. Default 50, minimum 1.
- Filters — Multiple conditions on Name or Organization (organizationId). Operators: Equals, Not Equals, Contains (wrapped as %value%), Greater/Less Than (or equal), In List (comma-separated). Numeric-looking values are converted to numbers for eq/gt/gte/lt/lte. Conditions with an empty value are ignored.
- Options > Order — Sort order 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 merged over the Filters, so its keys override matching filter fields. Invalid JSON is silently ignored.
Output shape
A list of items, one per policy record returned by the API. Each item's JSON is the policy object.
If no policies match, a single item is returned with {found: 0, resource, operation}. With Continue On Fail, errors are emitted as an item containing an error message. Base URL in the credential must end with /api.
Examples
Example 1: List all policies for one organization
Return All = true; Filters: Organization Equals
Example 2: Find policies whose name contains 'Server', newest first
Limit 20; Filters: Name Contains 'Server'; Options > Order = 'createdOn DESC'.
Example 3: Get only names and IDs of policies across several organizations
Return All = true; Filters: Organization In List 'id1,id2'; Options > Fields = 'id,name'.