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


Adds an instant message account to a contact with JSON.

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


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


Returns OK or error.


Adds an instant message account to a contact with JSON.
This is a convenience function to add just one instant message account with a given label to the contact.
Please call CNContactStore.UpdateContact later to store the values.
The JSON object may contain the keys service and username.
Service can be AIM, Facebook, GaduGadu, GoogleTalk, ICQ, Jabber, MSN, QQ, Skype or Yahoo.

See also

Created 1st August 2018, last changed 4th August 2018

CNContact.AddInstantMessage - CNContact.AddPhoneNumber