---
title: kAutoGenerateReturnID
framework: coreservices
role: symbol
role_heading: Global Variable
path: coreservices/kautogeneratereturnid
---

# kAutoGenerateReturnID

If you pass this value for the returnID parameter of the AECreateAppleEvent(_:_:_:_:_:_:) function, the Apple Event Manager assigns to the created Apple event a return ID that is unique to the current session.

## Declaration

```swift
var kAutoGenerateReturnID: Int { get }
```
