<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSPersistentCloudKitContainer/recordIDsForManagedObjectIDs:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPersistentCloudKitContainer(im)recordIDsForManagedObjectIDs:"
  },
  "title" : "recordIDsForManagedObjectIDs:"
}
-->

# recordIDsForManagedObjectIDs:

Returns a dictionary that contains the CloudKit record IDs for the specified managed object IDs.

```
- (NSDictionary<NSManagedObjectID *,CKRecordID *> *) recordIDsForManagedObjectIDs:(NSArray<NSManagedObjectID *> *) managedObjectIDs;
```

## Parameters

`managedObjectIDs`

An array of the managed object IDs.

## Return Value

A dictionary that uses `managedObjectIDs` as its keys, and the <doc://com.apple.documentation/documentation/CloudKit/CKRecord/ID> of each object’s underlying CloudKit record as its values. The dictionary excludes IDs that don’t have a CloudKit record.

---

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)