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
ErrorProneErrorProne 

Related List Conflict

What am i doing wrong here? Two Custom Objects: Account_Management__c (Parent) and Social_Media__c (Child)

 

<apex:page standardController="Account_Management__c" >
    <apex:relatedList list="Social_Media__r" />
</apex:page>

 Error:

Social_Media__r' is not a valid child relationship name for entity Account Management

 

Any Help would be great

h8r41dh8r41d

Hi,

 

According to the documentation for the relatedlist component, you use the plural form of the object you're trying to use.

 

I just tried it in my dev environment.

 

See this page: http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_relatedList.htm

 

Let me know if you need any further guidance.

 

Gabriel Alack
Contact Us - We Can Help!
Salesforce Superheroes
------------------------------
help@salesforcesuperheroes.com
www.salesforcesuperheroes.com
1-888-407-9578 x122