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.4
7.5
8.0
8.1
8.2
8.3
8.4
8.5
9.0
9.1
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 | No | No | Yes |
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
Created 18th August 2014, last changed 18th August 2014
Addressbook.record.SetValueForProperty - Addressbook.record.displayname
Feedback: Report problem or ask question.
Links
MBS FileMaker blog