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. – N.. Jun 28 '18 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 '18 at 7:21
  • It is not a custom field. – Nilang Pandey Jun 28 '18 at 7:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.