Contact_Add_Multiple

Contact_Add_Multiple( string keyarray contactsoptional struct optionalParameters)
 

Note: When using one of the API wrappers, you do not need to pass the API key. The wrapper will pass the key for you, your first parameter should be the second parameter in the signature.

Description

Add multiple contacts with custom fields. 
 

Parameters

  string key Your API key - used to authenticate your account
  array contacts Array of contact structs
contacts is an array of structs, where each struct can contain:
- email => value
- customFieldToken => value
- customFieldId => value

Each contact struct must have a valid email

Ex:
contacts = [
{"email":"mail2@lynch2.com", "first_name":"Test", "last_name":"User"},
{"email":"support@mail2.com", 1:"Support", 2:"User"}
];

Ex:
contacts = [
{"email":" mail2@lynch2.com"},
{"email":" mail2@mail2.com"}
];
optional struct optionalParameters A struct of optional parameters, see below for valid keys

optionalParameters can include:

bool activateDeleted If this contact was already deleted, reactivate them - defaults to true
bool updateCustomFields If this contact already exists, replace custom field values with values provided - defaults to false

Return

struct Aggregate import results
 

Still need help? Contact Us Contact Us