Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Adds an URL address to a contact.

Component Version macOS Windows Linux Server iOS SDK
Contacts 8.4 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "CNContact.AddURLAddress"; ContactIdentifier; URL { ; Label } )   More


Parameter Description Example Flags
ContactIdentifier The contact identifier. "46B1E34D-58F9-4B6B-A80D-0F71ABB87A0E"
URL The URL address. ""
Label The label to use.
For your convenience we translate Homepage, Work, Home and Other to the right values, so they get localized in display.
Default label is Other.
"Work" Optional


Returns OK or error.


Adds an URL address to a contact.
This is a convenience function to add just one URL with a given label to the contact.
Please call CNContactStore.UpdateContact later to store the values.


Add homepage:

Set Variable [ $r; Value:MBS( "CNContact.AddURLAddress"; $contactID; ""; "Homepage" ) ]

Add FMP URL to carry the record ID for our record in FileMaker for this person:

Set Variable [ $r; Value:MBS( "CNContact.AddURLAddress"; $contactID; "fmp://$/Contacts.fmp12?script=ShowContact&param=12345"; "FileMaker" ) ]

See also

Example Databases

Created 1st August 2018, last changed 25th January 2024

CNContact.AddSocialProfileJSON - CNContact.DeleteValue