You need to sign in to do that
Don't have an account?
Chetna Agrawal
how to display note related list in visualforce page
i want related list for notes which contain new note button on lead detail page.
<apex:page standardController="Lead">
<apex:pageBlock >
{!Lead.name}:
</apex:pageBlock>
<apex:relatedList subject="{!Lead}" list="CombinedAttachments" />
<apex:relatedList list="Note" />
</apex:page>
it is not working.
<apex:page standardController="Lead">
<apex:pageBlock >
{!Lead.name}:
</apex:pageBlock>
<apex:relatedList subject="{!Lead}" list="CombinedAttachments" />
<apex:relatedList list="Note" />
</apex:page>
it is not working.
You should be using the below tag to get Notes related list:
<apex:relatedList list="AttachedContentNotes"/>
reference:
https://developer.salesforce.com/forums/?id=906F00000005GshIAE
but after click on new note button i am getting error like "Action you performed was invalid for session.
The resolution to the session error is explained in the link below:
https://help.salesforce.com/apex/HTViewSolution?urlname=New-Note-button-on-the-notes-and-attachments-related-lists-results-in-invalid-session-error&language=en_US
Pls try it out.
i have enabled feed tracking but it is not working, still i am getting the same error.
Can you please share your updated VF code in the thread? I will try it out in my dev org.
Hello Sonam,
I tried with two approaches after switches to lightning mode
<apex:relatedList subject="{!account}" list="OpenActivities" /> - "We couldn't find the record you're trying to access. It may have been deleted by another user, or there may have been a system error. Ask your administrator for help"
<apex:relatedList list="AttachedContentNotes" /> -- "The action you performed was invalid for your session. Please refresh your page and try again."