Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CNGroup.Name
Queries group name.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Contacts | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "CNGroup.Name"; GroupIdentifier ) More
Parameters
Parameter | Description | Example |
---|---|---|
GroupIdentifier | The group identifier. Can be identifier or group name. |
"F527BF7C-6426-4D48-86CA-CB5E57743FFE:ABGroup" |
Result
Returns text or error.
Description
Queries group name.Examples
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
See also
Example Databases
Created 1st August 2018, last changed 14th June 2022