You need to sign in to do that
Don't have an account?
Jon 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>
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>
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