You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Remove email - Java & API SOAP

Accepted answer
4
Views
2
Comments
edited Jul 11, 2016 9:51PM in Integrations and APIs 2 comments

Content

Hello friends, 

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.

Regards

 

Version

August 2015

Code Snippet

             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); 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!