---
title: "currentPersistentHistoryToken(fromStores:)"
framework: coredata
role: symbol
role_heading: Instance Method
path: "coredata/nspersistentstorecoordinator/currentpersistenthistorytoken(fromstores:)"
---

# currentPersistentHistoryToken(fromStores:)

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

## Declaration

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

## Parameters

- `stores`: The persistent stores of interest.

## Return Value

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

## Discussion

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

## See Also

### Maintaining a record of changes

- [NSPersistentHistoryTrackingKey](coredata/nspersistenthistorytrackingkey.md)
