Add contacts
Version:
Use the client.AddContact() method to add a new contact. Contacts can be added with or without identifiers. An anonymous alias identifier is added to all new contacts, and contact IDs are sequentially generated by the xConnect service layer.
Add a single contact
In the folowing example, a single contact without identifiers or facets is created and submitted to xConnect:
Add multiple contacts
In the following example, two contacts without facets or identifiers are created and submitted as a single batch:
Submitting large numbers of contacts
Submitting large numbers of contacts
Large numbers of contacts should be submitted in smaller batches. Refer to the following documentation for more information about batching: