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

VF page for events for contacts


We uses share activiities that means we can add multiple contacts to an event. Stndar relate list "Name" only shows contact name an the type. So i am trying to add aVF page on event to show the contacts associated to an event and their email address.

I am getting this error:
Could not resolve field 'eventwhoids' from <apex:outputField> value binding '{!Event.eventwhoids}' in page Events

this is my page:
<apex:page standardController="Event" >
        <apex:pageBlockSection title="Contacts">
            <apex:outputField value="{!Event.Eventwhoids}"/>


EventWhoRelation object will contain all shared contact details. You have to use inline query to get those record in the extension controller and then display the value in your visualforce page.
SELECT Id, Subject, (SELECT RelationId, Relation.Name from EventWhoRelation) FROM Event
Check this link for more details -