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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
CNContactStore.Groups
Queries list of all groups.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Contacts | 8.4 | Yes | No | No | No | Yes |
Parameters
none
Result
Returns list or error.
Description
Queries list of all groups.You get back a list with the group identifiers.
Examples
Show groups with IDs and names in field:
Set Variable [ $groups ; Value: MBS( "CNContactStore.Groups" ) ]
Set Variable [ $count ; Value: ValueCount ( $groups ) ]
If [ $count > 0 ]
Set Variable [ $index ; Value: 1 ]
Set Variable [ $text ; Value: "" ]
Loop
#
Set Variable [ $groupID ; Value: GetValue($groups; $index) ]
Set Variable [ $groupName ; Value: MBS( "CNGroup.Name"; $groupID ) ]
Set Variable [ $text ; Value: $text & $GroupName & " " & $groupID ]
#
# next
Set Variable [ $index ; Value: $index + 1 ]
Exit Loop If [ $index > $count ]
Set Variable [ $text ; Value: $text & ¶ ]
End Loop
End If
Set Field [ Contacts::Result ; $text ]
See also
- CNContactStore.AddGroup
- CNContactStore.Country
- CNContactStore.GroupsByName
- CNContactStore.GroupsForContact
- CNContactStore.RequestAccesss
- CNContactStore.Subgroups
- CNGroup.Name
Example Databases
Created 1st August 2018, last changed 6th August 2018
CNContactStore.GroupHierarchy - CNContactStore.GroupsByName
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins