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.AddGroup
Adds a new group.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Contacts | 8.4 | Yes | No | No | No | Yes |
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| Name | The new group name. | "Test" | |
| ContainerIdentifier | The identifier for the container. | "9892A5CC-964E-497A-B877-A47619F7493C:ABAccount" | Optional |
Result
Returns OK or error.
Description
Adds a new group.Optionally pass in container identifier to specify which account to use.
Examples
Create a group:
Set Variable [ $r ; Value: MBS( "CNContactStore.AddGroup"; "Test Group") ]
If [ MBS("IsError") ]
Show Custom Dialog [ "Failed to create a group" ; $r ]
Else
Set Field [ Contacts::GroupID ; $r ]
End If
See also
- CNContactStore.AddMember
- CNContactStore.AddSubgroup
- CNContactStore.DeleteGroup
- CNContactStore.Groups
- CNContactStore.RenameGroup
- CNContactStore.Subgroups
- IsError
Example Databases
Created 1st August 2018, last changed 6th August 2018
CNContactStore.AddContact - CNContactStore.AddMember
Feedback: Report problem or ask question.
Links
MBS FileMaker tutorial videos