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.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3    Statistic  


Creates a new group.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Addressbook 3.1 Yes No Yes, macOS only No Yes

MBS( "Addressbook.NewGroup" )




Returns ID for new group.


Creates a new group.
This group has no ID assigned until you save it to the addressbook. So the plugin returns a special ID where the plugin knows that when you change the group, you refer to the new group.
Address book item reference numbers are starting at 26000 and counting up for each new item.


Create group and save changes:

$groupID = MBS( "Addressbook.NewGroup" )
$r = MBS( "Addressbook.record.SetValueForProperty"; $groupID; "GroupNameProperty"; "Friends" )
$r = MBS( "Addressbook.addRecord"; $groupID )
$r = MBS( "" )

See also

Addressbook.LocalizedPropertyOrLabel   -   Addressbook.NewPerson

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins