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.

  • Check the Field-Level Security for that field [Go to Setup > Open the field > Click on 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.
    – S..
    Jun 28, 2018 at 6:21
  • 1
    @N.B. I don't think IsPrivateDraft is custom field. i found this field in EmailMessage but when i tried to get all fields through workbench it was not there.
    – Mr.Frodo
    Jun 28, 2018 at 7:21
  • It is not a custom field. Jun 28, 2018 at 7:24


You must log in to answer this question.