---
title: transactionID
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsappleeventdescriptor/transactionid
---

# transactionID

The receiver’s transaction ID, if any.

## Declaration

```swift
var transactionID: AETransactionID { get }
```

## Discussion

Discussion The receiver’s transaction ID (an integer value), or 0 if an error occurs. The receiver must be an Apple event. Currently provides no indication if an error occurs. For more information on transactions, see the description for appleEvent(withEventClass:eventID:targetDescriptor:returnID:transactionID:).

## See Also

### Working With Apple Event Descriptors

- [attributeDescriptor(forKeyword:)](foundation/nsappleeventdescriptor/attributedescriptor(forkeyword:).md)
- [eventClass](foundation/nsappleeventdescriptor/eventclass.md)
- [eventID](foundation/nsappleeventdescriptor/eventid.md)
- [paramDescriptor(forKeyword:)](foundation/nsappleeventdescriptor/paramdescriptor(forkeyword:).md)
- [removeParamDescriptor(withKeyword:)](foundation/nsappleeventdescriptor/removeparamdescriptor(withkeyword:).md)
- [returnID](foundation/nsappleeventdescriptor/returnid.md)
- [setAttribute(_:forKeyword:)](foundation/nsappleeventdescriptor/setattribute(_:forkeyword:).md)
- [setParam(_:forKeyword:)](foundation/nsappleeventdescriptor/setparam(_:forkeyword:).md)
