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
Richa_LearningRicha_Learning 

VF page for events for contacts

Hi,

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:pageBlock>
        <apex:pageBlockSection title="Contacts">
           
            <apex:outputField value="{!Event.Eventwhoids}"/>

                </apex:pageBlockSection>
    </apex:pageBlock>
</apex:page>

thanks.
Richa
@Karanraj@Karanraj
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 - https://developer.salesforce.com/docs/atlas.en-us.200.0.api.meta/api/sforce_api_objects_eventwhorelation.htm