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: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

CNContact.JSON

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 } )

Parameters

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.
1

Result

Returns JSON or error.

Description

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

Examples

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

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


CNContact.IsUnifiedWithContact   -   CNContact.MailingAddress

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins