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
Jon SheaJon Shea 

TaskWhoIds in VF Pages

I'm trying to create an inline Visualforce page to substitute for the standard 'Name' related list on Shared Activities. The problem I am trying to solve is getting more information that just the related name and type (Lead or Contact) to display in the name related list on the task detail page.

I created a basic page using the code below, but it seems as though Task.WhoId only looks at the Primary Contact and not other related contacts.

Has anyone used TaskWhoIds to return a list of ALL related contacts/leads for shared activities ? And am I able to use TaskWhoIds to get the accountIds of other related contacts ? For Example <<Task.TaskWhoIds.AccountId>>   


<apex:page standardController="Task" >
<apex:pageBlock title="Related Contacts">
<apex:pageBlockTable value="{!Task.Whoid}" var="Whoid">
<apex:column value="{!Task.whoid}"/>
<apex:column value="{!Task.Accountid}"/>
</apex:pageBlockTable> </apex:pageBlock>
Srinath R 9Srinath R 9
Hi Guys,

I have a simiar requirement too after having enabled "Allow Users to Relate Multiple Contacts to Tasks and Events" setting in my org.

Please help

Thanks
Srinath R
Prasad KairamkondaPrasad Kairamkonda
Same is my requirement..