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 group name.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Contacts | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example |
---|---|---|
GroupIdentifier | The group identifier. Can be identifier or group name. |
"F527BF7C-6426-4D48-86CA-CB5E57743FFE:ABGroup" |
Returns text or error.
Queries group names:
While(
[
names = "";
// query list of group IDs
list = MBS( "CNContactStore.Groups" );
count = ValueCount(list);
index = 1
] ;
index ≤ count ;
[
id = GetValue(list; index);
// query name for each ID
name = MBS( "CNGroup.Name"; id);
names = names & id & " -> " & name & ¶;
index = index + 1
] ;
// return all the names
names )
Example result:
009ACB1E-1A27-444B-1000-43EC9B2F420B:ABGroup -> Christmas Cards
036104A1-BFD4-498C-2E55-BC6E442F7265:ABGroup -> Friends
391726FA-6B46-479E-38F5-E4B187809300:ABGroup -> Family
7A47A8BC-FA88-47CB-4CB2-5A1A1290ED94:ABGroup -> Work
Created 1st August 2018, last changed 14th June 2022