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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

Addressbook.record.UniqueID

Returns the unique ID for a record.

Component Version macOS Windows Linux Server iOS SDK
Addressbook 3.1 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes

Deprecated

This function was deprecated. Use Contacts functions instead.

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

Parameters

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

Result

Returns the unique ID for a record.

Description

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.

Examples

Create person and save changes:

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

See also

Example Databases

Blog Entries

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


Addressbook.record.SetValueForProperty - Addressbook.record.displayname

Feedback: Report problem or ask question.