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.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

Addressbook.record.UniqueID

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 )

Parameters

Parameter Description Example value
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


Addressbook.record.SetValueForProperty   -   Addressbook.record.displayname

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins