Remove email - Java & API SOAP
I want to know how I can delete an email to a Contact using API SOAP.
I am using this code below, but this code doesn't work.
Does anyone have an idea?
Thanks in advance.
email.setAddress(null); EmailList emailList = new EmailList(); Email email = new Email(); email.setAction(ActionEnum.remove); NamedID emailNamedID = new NamedID(); ID emailID = new ID(); emailID.setId(0); emailNamedID.setID(emailID); emailNamedID.setName("Correo principal"); email.setAddressType(emailNamedID); emailList.addEmailList(email); c.setEmails(emailList);