CNContactStore.DataWithContacts
-------------------------------

Queries data for contacts.

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

MBS( "CNContactStore.DataWithContacts"; Identifiers ) 

**MBS**( **"CNContactStore.DataWithContacts";** /\* Queries data for contacts. \*/  
**$Identifiers**) /\* The list of contact identifiers for this operation. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Identifiers | The list of contact identifiers for this operation. |  |

### Result

Returns contact idenifiers or error.

### Description

Queries data for contacts.  
Contacts are serialized as vCards and you can write that text to a vCard file.  
This converts between a contact and it's vCard representation.  
  
This will use unified contacts, so data is merged from several sources.  
### Examples

Find people and get get vCard:

 Set Variable \[ $Identifiers ; Value: MBS ( "[CNContactStore.ContactsMatchingName](CNContactStoreContactsMatchingName.md)"; "Schmitz" ) \]   
Set Variable \[ $Data ; Value: MBS ( "CNContactStore.DataWithContacts"; $Identifiers ) \]  
### See also

- [CNContactStore.Contacts](CNContactStoreContacts.md)
- [CNContactStore.ContactsMatchingName](CNContactStoreContactsMatchingName.md)
- [CNContactStore.ContactsWithData](CNContactStoreContactsWithData.md)
- [CNContactStore.DeleteContact](CNContactStoreDeleteContact.md)
- [CNContactStore.FetchContact](CNContactStoreFetchContact.md)
- [CNContactStore.UpdateContact](CNContactStoreUpdateContact.md)

This function checks for a license.

Created 1st August 2018 , last changed 11st January 2021

  
[CNContactStore.Country](CNContactStoreCountry.md) - [CNContactStore.DefaultContainerIdentifier](CNContactStoreDefaultContainerIdentifier.md)

[HTML Version](CNContactStoreDataWithContacts.shtml)