CNContactStore.FetchContact
---------------------------

Fetches a fresh copy of this contact.

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

MBS( "CNContactStore.FetchContact"; ContactIdentifier ) 

**MBS**( **"CNContactStore.FetchContact";** /\* Fetches a fresh copy of this contact. \*/  
**$ContactIdentifier**) /\* The contact identifier.e.g. "46B1E34D-58F9-4B6B-A80D-0F71ABB87A0E" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ContactIdentifier | The contact identifier. | "46B1E34D-58F9-4B6B-A80D-0F71ABB87A0E" |

### Result

Returns contact identifier or error.

### Description

Fetches a fresh copy of this contact.  
Your contact may be from the picker and not have all fields loaded. Or it may be outdated and you like to get a fresh copy.  
This function takes an identifier and picks a fresh copy of the contact and returns a new reference (or the same).  
Then you can query values with [CNContact.Value](CNContactValue.md).  
### Examples

Check if account is there:

 Set Variable \[ $ContactIdentifier ; Value: "36B1E34D-58F9-4B6B-A80D-0F71ABB87A0E" \]   
Set Variable \[ $r ; Value: MBS ( "CNContactStore.FetchContact"; $ContactIdentifier ) \]   
If \[ MBS ("IsError") = 0 \]   
 Show Custom Dialog \[ "Found" ; MBS ( "[CNContact.Name](CNContactName.md)"; $ContactIdentifier ) \]   
Else  
 Show Custom Dialog \[ "Failed" ; "Invalid ID." \]   
End If  
### See also

- [CNContact.HasValue](CNContactHasValue.md)
- [CNContact.Name](CNContactName.md)
- [CNContact.Value](CNContactValue.md)
- [CNContactStore.AddContact](CNContactStoreAddContact.md)
- [CNContactStore.Contacts](CNContactStoreContacts.md)
- [CNContactStore.DataWithContacts](CNContactStoreDataWithContacts.md)
- [CNContactStore.DeleteContact](CNContactStoreDeleteContact.md)
- [CNContactStore.NewContact](CNContactStoreNewContact.md)
- [CNContactStore.UpdateContact](CNContactStoreUpdateContact.md)
- [IsError](IsError.md)

### Release notes

- **Version 12.1**
    - Added [CNContactStore.FetchContact](https://www.mbsplugins.eu/CNContactStoreFetchContact.shtml) function.

### Blog Entries

- [New in MBS FileMaker Plugin 12.1](https://www.mbsplugins.de/archive/2022-03-22/New_in_MBS_FileMaker_Plugin_12/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 12.1](https://www.mbsplugins.de/archive/2022-03-15/Neues_MBS_FileMaker_Plugin_121/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 12.1 - More than 6700 Functions In One Plugin](https://www.mbsplugins.de/archive/2022-03-15/MBS_FileMaker_Plugin_121_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.1pr3](https://www.mbsplugins.de/archive/2022-02-16/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 10th February 2022 , last changed 1st March 2023

  
[CNContactStore.DeleteGroup](CNContactStoreDeleteGroup.md) - [CNContactStore.GetTransactionAuthor](CNContactStoreGetTransactionAuthor.md)

[HTML Version](CNContactStoreFetchContact.shtml)