---
title: "initWithRecordIDs:"
framework: cloudkit
role: symbol
role_heading: Instance Method
path: "cloudkit/cksyncenginesendchangesscope/initwithrecordids:"
---

# initWithRecordIDs:

Creates a scope that includes only the given record IDs. If recordIDs is nil, this scope contains all records.

## Declaration

```occ
- (instancetype) initWithRecordIDs:(NSSet<CKRecordID *> *) recordIDs;
```
