Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Adds a new group.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Contacts 8.4 Yes No No No Yes
MBS( "CNContactStore.AddGroup"; Name { ; ContainerIdentifier } )   More


Parameter Description Example value
Name The new group name. "Test"
ContainerIdentifier Optional
The identifier for the container.


Returns OK or error.


Adds a new group.
Optionally pass in container identifier to specify which account to use.


Create a group:

Set Variable [ $r ; Value: MBS( "CNContactStore.AddGroup"; "Test Group") ]
If [ MBS("IsError") ]
    Show Custom Dialog [ "Failed to create a group" ; $r ]
    Set Field [ Contacts::GroupID ; $r ]
End If

See also

Example Databases

Created 1st August 2018, last changed 6th August 2018

CNContactStore.AddContact   -   CNContactStore.AddMember

Feedback: Report problem or ask question.

MBS Xojo Plugins