Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CNContactStore.UpdateContact
Updates a contact.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Contacts | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "CNContactStore.UpdateContact"; ContactIdentifier ) More
Parameters
Parameter | Description | Example |
---|---|---|
ContactIdentifier | The contact identifier. | "46B1E34D-58F9-4B6B-A80D-0F71ABB87A0E" |
Result
Returns contact identifier or error.
Description
Updates a contact.After you set values with CNContact.SetValue, you can make changes permanent here.
You may get Cocoa error 134092 if the contact has a note field entry since FileMaker is not allowed to read/write the note field.
Examples
Update a contact by adding an URL:
Set Variable [ $ContactID; Value: "BD2307E5-92F6-4A8F-946D-C4804615C18B:ABPerson" ]
// add the URL:
Set Variable [ $r; Value: MBS( "CNContact.AddURLAddress"; $contactID; "http://www.monkeybreadsoftware.com/"; "Homepage" ) ]
// and save
Set Variable [ $r; Value: MBS( "CNContactStore.UpdateContact"; $ContactID ) ]
See also
- CNContact.AddPostalAddress
- CNContact.AddPostalAddressJSON
- CNContact.AddRelation
- CNContact.AddSocialProfileJSON
- CNContact.SetValue
- CNContactStore.AddContact
- CNContactStore.DataWithContacts
- CNContactStore.FetchContact
- CNContactStore.GroupsForContact
- CNContactStore.UnifiedMeContact
This function checks for a license.
Created 1st August 2018, last changed 7th May 2024