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 identifiers of all containers.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Contacts | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
none
Returns list or error.
Query all accounts:
MBS( "CNContactStore.Containers" )
Example result:
9892A5CC-964E-497A-B877-A47619F7493C:ABAccount
_local
Queries container types:
While(
[
names = "";
// query list of containers IDs
list = MBS( "CNContactStore.Containers" );
count = ValueCount(list);
index = 1
] ;
index ≤ count ;
[
id = GetValue(list; index);
// query name for each ID
name = MBS( "CNContainer.Name"; id);
type = MBS( "CNContainer.Type"; id);
names = names & name & " -> " & type & ¶;
index = index + 1
] ;
// return all the names
names )
This function checks for a license.
Created 15th August 2018, last changed 14th June 2022