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  


Returns the unique ID for a record.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Addressbook 3.1 Yes No No No Yes
MBS( "Addressbook.record.UniqueID"; RecordID )   More


Parameter Description Example value
RecordID The unique ID for the target person or group. $personID


Returns the unique ID for a record.


Returns the unique ID for a record.
Use this method to query the record ID for a new person or group after you saved it.


Create person and save changes:

$personID = MBS( "Addressbook.NewPerson" )
$r = MBS( "Addressbook.record.SetValueForProperty"; $personID; "FirstNameProperty"; "John" )
$r = MBS( "Addressbook.addRecord"; $personID )
$r = MBS( "" )
# Learn real ID for new record
$personID = MBS( "Addressbook.record.UniqueID"; $personID )

See also

Example Databases

Created 18th August 2014, last changed 18th August 2014

Addressbook.record.SetValueForProperty   -   Addressbook.record.displayname

Feedback: Report problem or ask question.

MBS Xojo Plugins