I'm attempting to use the CreateAddContactsActivity to update a bunch of email records. I've got a Datatable that holds the fields
List<string> listIds = new List<string>();
listIds.Add(contactList.Id);
foreach (DataRow row in dataForAdding.Rows)
{
AddContactsImportData current = new AddContactsImportData();
current.FirstName = row["FirstName"].ToString();
current.LastName = row["LastName"].ToString();
current.CompanyName = row["Name"].ToString();
current.EmailAddresses.Add(row["Email"].ToString().Trim());
list.Add(current);
}
AddContacts addContacts = new AddContacts(list, listIds, null);
activityService.CreateAddContactsActivity(addContacts);
It all runs with no error, but the list is not updated when I check it Constant Contact.
Solved! Go to Solution.
Hello,
Thank you for reaching out to Constant Contact API Support.
When you create a bulk import activity, that activity will queue and then process. There are multiple factors that go into how long it takes to process an import, such as how many contacts you are importing or how many other imports across other accounts are running.
The response to your call to create the import activity should include an activity ID ("id"), and you can make a call to get that activity by ID to see the status.
Please let me know if you have any other questions!
Regards,
David Bornstein
Tier II API Support Engineer
Update:
The call is working, it just takes longer to update the list than I had thought that it would. How long after the function call is a safe wait time to assume the changes are reflected in the list?
Hello,
Thank you for reaching out to Constant Contact API Support.
When you create a bulk import activity, that activity will queue and then process. There are multiple factors that go into how long it takes to process an import, such as how many contacts you are importing or how many other imports across other accounts are running.
The response to your call to create the import activity should include an activity ID ("id"), and you can make a call to get that activity by ID to see the status.
Please let me know if you have any other questions!
Regards,
David Bornstein
Tier II API Support Engineer
The holidays have come and gone. For many seasonal businesses, this means the rush of shoppers has decreased as well. Instead of turning off the lights and waiting for spring, make your email marketi...
See Article