CNContactPicker.Current
-----------------------

Queries the current contact.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Contacts](component_Contacts.md) | [10.1](newinversion101.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "CNContactPicker.Current" ) ### Parameters

none

### Result

Returns contact identifier or error.

### Description

Queries the current contact.  
Can be called in trigger script to query current contact selected.  
For multiple selection mode, this returns list of contacts.  
### Examples

Checks what user selected in the triggered script:

 Set Variable \[ $contactID ; Value: MBS ("CNContactPicker.Current") \]  
Set Field \[ PlaceHolder::ContactID ; $contactID \]  
Set Field \[ PlaceHolder::First Name ; MBS ( "[CNContact.Value](CNContactValue.md)"; $contactID ; "givenName" ) \]  
Set Field \[ PlaceHolder::Last Name ; MBS ( "[CNContact.Value](CNContactValue.md)"; $contactID ; "familyName" ) \]  
### See also

- [CNContact.Value](CNContactValue.md)
- [CNContactPicker.Close](CNContactPickerClose.md)
- [CNContactPicker.CurrentProperties](CNContactPickerCurrentProperties.md)
- [CNContactPicker.Show](CNContactPickerShow.md)

### Release notes

- **Version 16.3**
    - Added [CNContactPicker.CurrentProperties](https://www.mbsplugins.eu/CNContactPickerCurrentProperties.shtml) function.

### Example Databases

- [Mac and iOS/Contacts/Contacts Dialogs](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Contacts/Contacts%20Dialogs.shtml#5ScriptAnchor_)

### Blog Entries

- [New in the MBS FileMaker Plugin 10.1](https://www.mbsplugins.de/archive/2020-03-17/New_in_the_MBS_FileMaker_Plugi/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 31st January 2020 , last changed 13th May 2026

  
[CNContactPicker.Close](CNContactPickerClose.md) - [CNContactPicker.CurrentProperties](CNContactPickerCurrentProperties.md)

[HTML Version](CNContactPickerCurrent.shtml)