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
Nicolas BragardNicolas Bragard 

'contact.HasOptedOutOfEmail' cannot be used in Sforce development environment

It seems that the HasOptedOutOfEmail field from the contact object cannot be used in SOSQL query. This field exists in the .WSDL file but when I try to query it I got the "INVALID FIELD" error message. More strange I can add this field to the contact layout but it's never displayed in my sforce.com development environment?

 

ANy idea ?

benjasikbenjasik
Check the fieldLevel security for this field. It was defaulted to off for me.