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

Event Field Problem



  can anyone say about field of Event Object...?

 I have seen there are Email and phone field present in Event Object but when I am writing Event.Email then an error is fired that No such field is present in Event object.

Here is the Link for displaying Email and phone field present



But when I am trying to display the value an error occurs

event = [select id,Email,Phone,Subject from Event where who__id=:contact.Id] ;

apex:outputField value="{!event.Phone}"/>




please help me


Best Answer chosen by Admin (Salesforce Developers) 

Looking at the schema explorer and the web services API, it appears these fields don't really exist from a programmatic perspective.  They are formula type "fields" that pull through information from the related lead/contact/user, but aren't available to the likes of us.  I'd imagine this is because there is some trickery going on under the hood to handle the polymorphic nature of the who id.