Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
CNContact.JSON
Queries contact as JSON.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Contacts | 8.4 | Yes | No | No | No | Yes |
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| ContactIdentifier | The contact identifier. | "46B1E34D-58F9-4B6B-A80D-0F71ABB87A0E" | |
| SkipImage | Available in MBS FileMaker Plugin 8.5 or newer. If you pass 1, we skip the images. Default is 0 to include images. |
1 | Optional |
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
- CNContact.Name
- CNContact.Show
- CNContactStore.AddContact
- CNContactStore.NewContact
- CNContactStore.UnifiedMeContact
- JSON.Colorize
- JSON.Format
Example Databases
Blog Entries
Release notes
- Version 8.5
- Added SkipImage parameter for CNContact.JSON function.
Created 1st August 2018, last changed 25th September 2018
CNContact.IsUnifiedWithContact - CNContact.MailingAddress
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins