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: 8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3    Statistic  


Queries contact as JSON.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Contacts 8.4 Yes No No No Yes
MBS( "CNContact.JSON"; ContactIdentifier { ; SkipImage } )   More


Parameter Description Example value
ContactIdentifier The contact identifier. "46B1E34D-58F9-4B6B-A80D-0F71ABB87A0E"
SkipImage Optional
Available in MBS FileMaker Plugin 8.5 or newer.
If you pass 1, we skip the images.
Default is 0 to include images.


Returns JSON or error.


Queries contact as JSON.
If the application is not properly code signed with entitlements, you may only get limited data like no phone numbers.


Query your JSON:

MBS( "CNContact.JSON"; MBS( "CNContactStore.UnifiedMeContact" ) )

Get formatted and colored JSON:

Set Variable [ $json ; Value: MBS( "CNContact.JSON"; MBS( "CNContactStore.UnifiedMeContact" ) ) ]
Set Variable [ $json ; Value: MBS("JSON.Colorize"; MBS( "JSON.Format"; $json) ) ]
Set Field [ Contacts::Result ; $json ]

See also

Example Databases

Blog Entries

Created 1st August 2018, last changed 25th September 2018

CNContact.IsUnifiedWithContact   -   CNContact.MailingAddress

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins