<!--
{
  "availability" : [
    "iOS: 18.2.0 -",
    "iPadOS: 18.2.0 -",
    "macCatalyst: -",
    "macOS: 15.2.0 -",
    "tvOS: 18.2.0 -",
    "visionOS: 2.2.0 -",
    "watchOS: 11.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/AppEntityAnnotatable/appEntityIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents0A17EntityAnnotatableP03appC10IdentifierAA0cF0VSgvp"
  },
  "title" : "appEntityIdentifier"
}
-->

# appEntityIdentifier

The identifier of an app entity you want to associate with a system type.

```
var appEntityIdentifier: EntityIdentifier? { get set }
```

## Discussion

This property stores the unique identifier of one of your app’s entities. Use it to create
an association between a system type and one of your custom [`AppEntity`](/documentation/AppIntents/AppEntity) types. For example,
the <doc://com.apple.documentation/documentation/Foundation/NSUserActivity> makes this
property available so you can specify the entity associated with your app’s activity. To
remove the association with one of your app’s entities, set this property to `nil`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)