0

I have this Account object, for the respective object we have one Activity History Related list.

I need to display the Activity history for Account object through VisualForce Page.

How can it be Achieve? i want to display same record into the visual force page. enter image description here

2

You can display the related list in a VF page using apex:relatedList tag. Following is the visualforce code to display Activity History:

<apex:page standardController="Account">
    <apex:relatedList list="ActivityHistories" title="Activity History" />
</apex:page>

Below is the output:

enter image description here

You can refer this link: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_relatedList.htm

Let me know if it works for you.

0

you need to use apex:relatedList tag

 <apex:relatedList title="Activity History"  list="ActivityHistories" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.