function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MitraMitra 

Email Opt-Out Field

Can any body tell me which API I need to use to set Email Opt-out field in Campaign?

and

Is Email Opt-out field belong to Contact/ Lead/ Opportunity Object?

 

Thanks in advance. 

GlennWGlennW

Mitra;  The email opt out field is found on the "Contact" object and is called "HasOptedOutOfEmail"  This field is update-able.  You can access it via your organizational WSDL or the Partner WSDL.

To link the Contact to a Campaign you need to create "CampaignMember" objects.

Cheers;
GlennW
www.demandtools.com

MitraMitra

Hi Wilson

Thanks a lot for your information.

I was searching in SalesForce IDE Object browser for the same.

-Mitra