+ Start a Discussion
asish1989asish1989 

Event Field Problem

Hi..

 

  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

 

https://ap1.salesforce.com/p/setup/layout/LayoutFieldList?type=Event&setupid=EventFields&retURL=%2Fui%2Fsetup%2FSetup%3Fsetupid%3DActivity

 

 

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

asish

Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard

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.