---
title: "entities(for:)"
framework: appintents
role: symbol
role_heading: Instance Method
path: "appintents/entityquery/entities(for:)"
---

# entities(for:)

Retrieves instances by identifier.

## Declaration

```swift
func entities(for identifiers: [Self.Entity.ID]) async throws -> [Self.Entity]
```

## Parameters

- `identifiers`: An array of entity identifiers.

## Mentioned in

Defining app entities for your custom data types

## Discussion

Discussion The system skips identifiers that have no matching entity, so the returned array can have fewer entries than the supplied identifiers.

## See Also

### Searching for entities

- [Entity](appintents/entityquery/entity.md)
