---
title: isTemporaryID
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsmanagedobjectid/istemporaryid
---

# isTemporaryID

A Boolean value that indicates whether the object ID is temporary.

## Declaration

```swift
var isTemporaryID: Bool { get }
```

## Discussion

Discussion true if the receiver is temporary, otherwise false. Most object IDs return false. New objects inserted into a managed object context are assigned a temporary ID which is replaced with a permanent one once the object gets saved to a persistent store.

## See Also

### Getting Managed Object ID Information

- [entity](coredata/nsmanagedobjectid/entity.md)
- [persistentStore](coredata/nsmanagedobjectid/persistentstore.md)
- [uriRepresentation()](coredata/nsmanagedobjectid/urirepresentation().md)
