I have an existing contact in the system with a null id
I use SearchContactByEmail - it returns the contact
I use UpdateContactFullform to update the lists for the contact which errors out - Id cannot be null
How do I do this?
... View more
I'm using the following code in a class in order to submit a new contact and add them to a list. I'm getting a 400 error which I understand to be xml problems most of the time. However, I can't seem to figure out how to grab the xml that's being sent. I know that my authentication is working as I can faithfully break that and get a differeny error.
I've just starting working with this API and we have a client that is being somewhat urgent in getting this up and running.
Any help is appreciated.
The code bombs out on line 1728 of Utility.cs.
var ccContact = new Contact();
ccContact.CustomField1 = Server.HtmlEncode(ddOrgTypes.SelectedValue);
ccContact.CountryCode = Server.HtmlEncode(ddCountries.SelectedValue);
ccContact.FirstName = Server.HtmlEncode(txtFirstName.Text);
ccContact.LastName = Server.HtmlEncode(txtLastName.Text);
ccContact.EmailAddress = Server.HtmlEncode(txtEmailAddress.Text);
ccContact.JobTitle = Server.HtmlEncode(txtJobTitle.Text);
ContactOptInList contactOptInList = new ContactOptInList();
contactOptInList.ContactList = new ContactList("General Interest");
contactOptInList.ContactList = new ContactList("EmailList");
var ccAuth = new AuthenticationData(CcApiKey, CcUsername, CcPassword);
... View more