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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Addressbook.record.UniqueID
Returns the unique ID for a record.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Addressbook | 3.1 | Yes | No | No | No | Yes |
Deprecated
This function was deprecated. Use Contacts functions instead.
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.
Links
MBS Xojo Chart Plugins