Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0    Statistic  


Returns the unique ID for a record.

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

MBS( "Addressbook.record.UniqueID"; RecordID )


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

Addressbook.record.SetValueForProperty   -   Addressbook.record.displayname

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins