<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSPersistentStoreCoordinator/currentPersistentHistoryToken(fromStores:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPersistentStoreCoordinator(im)currentPersistentHistoryTokenFromStores:"
  },
  "title" : "currentPersistentHistoryToken(fromStores:)"
}
-->

# currentPersistentHistoryToken(fromStores:)

Returns a single persistent history token representing all of the specified stores.

```
func currentPersistentHistoryToken(fromStores stores: [Any]?) -> NSPersistentHistoryToken?
```

## Parameters

`stores`

The persistent stores of interest.

## Return Value

A persistent history token, or `nil` if the coordinator can’t create one.

## Discussion

If you specify `nil` or provide an empty array, the coordinator attempts to create a token for all of its registered stores.

---

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)