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: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.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

This function checks for a license.

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


Addressbook.record.SetValueForProperty - Addressbook.record.displayname

💬 Ask a question or report a problem