I have a field named IsPrivateDraft in EmailMessage, I want to use that field for updating the draft EmailMessage. I want to know the value of this field but cannot use it in query. On using the field in query I am given error "No such column 'isPrivateDraft' on entity 'EmailMessage'", even it is shown in the list of fields of EmailMessage in Developer Console.
Set Field-Level Security button
and check access]. Make sure you're using isPrivateDraft__c in your query. That's a custom field, so __c is important.IsPrivateDraft
is custom field. i found this field in EmailMessage but when i tried to get all fields through workbench it was not there.