Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Queries all contacts.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Contacts | 8.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
unifyResults | Whether to unify results. 1 to unify contacts and 0 to return all invidivual contacts. Default is 1. |
1 | Optional |
Returns list of contact identifiers or error.
Query names for all contacts:
While(
[
names = "";
// query list of contacts IDs
list = MBS( "CNContactStore.Contacts"; 1 );
count = ValueCount(list);
index = 1
] ;
index ≤ count ;
[
id = GetValue(list; index);
// query name for each ID
name = MBS( "CNContact.Name"; id);
names = names & name & ¶;
index = index + 1
] ;
// return all the names
names )
This function checks for a license.
Created 25th September 2018, last changed 14th June 2022
CNContactStore.AuthorizationStatus - CNContactStore.ContactsInContainer