You need to sign in to do that
Don't have an account?
Julie Leszczynski
Activity History' is not a valid child relationship name for entity Account
I am trying to create a Tabbed Account page and keeping getting the following Error:
Activity History' is not a valid child relationship name for entity Account
I have tried several of the recommendations given but nothing is working. Can you please review my code:
<apex:page standardController="Account" showHeader="true"
tabStyle="account" >
<style>
.activeTab {background-color: #236FBD; color:white;
background-image:none}
.inactiveTab { background-color: lightgrey; color:black;
background-image:none}
</style>
<apex:tabPanel switchType="client" selectedTab="tabdetails"
id="AccountTabPanel" tabClass="activeTab"
inactiveTabClass="inactiveTab">
<apex:tab label="Details" name="AccDetails" id="tabdetails">
<apex:detail relatedList="false" title="true"/>
</apex:tab>
<apex:tab label="Contacts" name="Contacts" id="tabContact">
<apex:relatedList subject="{!account}" list="contacts" />
</apex:tab>
<apex:tab label="Open Activities" name="OpenActivities"
id="tabOpenAct">
<apex:relatedList subject="{!account}"
list="OpenActivities" />
</apex:tab>
<apex:tab label="Activity History"
name="ActivityHistory" id="tabActiHis">
<apex:relatedList subject="{!account}"
list="Activity History" />
</apex:tab>
<apex:tab label="Contracts"
name="Contract" id="tabContract">
<apex:relatedList subject="{!account}"
list="Contracts" />
</apex:tab>
<apex:tab label="Opportunities" name="Opportunities"
id="tabOpp">
<apex:relatedList subject="{!account}"
list="opportunities" />
</apex:tab>
<apex:tab label="Cases" name="Case"
id="tabCases">
<apex:relatedList subject="{!account}"
list="Cases" />
</apex:tab>
<apex:tab label="Underwriting & Service" name="Underwriting_Service"
id="tabUndeSer">
<apex:relatedList subject="{!account}"
list="Underwriting_Service" />
</apex:tab>
<apex:tab label="Notes and Attachments" name="NotesAndAttachments"
id="tabNoteAtt">
<apex:relatedList subject="{!account}"
list="CombinedAttachments" />
</apex:tab>
</apex:tabPanel>
</apex:page>
Thank You - Julie
Activity History' is not a valid child relationship name for entity Account
I have tried several of the recommendations given but nothing is working. Can you please review my code:
<apex:page standardController="Account" showHeader="true"
tabStyle="account" >
<style>
.activeTab {background-color: #236FBD; color:white;
background-image:none}
.inactiveTab { background-color: lightgrey; color:black;
background-image:none}
</style>
<apex:tabPanel switchType="client" selectedTab="tabdetails"
id="AccountTabPanel" tabClass="activeTab"
inactiveTabClass="inactiveTab">
<apex:tab label="Details" name="AccDetails" id="tabdetails">
<apex:detail relatedList="false" title="true"/>
</apex:tab>
<apex:tab label="Contacts" name="Contacts" id="tabContact">
<apex:relatedList subject="{!account}" list="contacts" />
</apex:tab>
<apex:tab label="Open Activities" name="OpenActivities"
id="tabOpenAct">
<apex:relatedList subject="{!account}"
list="OpenActivities" />
</apex:tab>
<apex:tab label="Activity History"
name="ActivityHistory" id="tabActiHis">
<apex:relatedList subject="{!account}"
list="Activity History" />
</apex:tab>
<apex:tab label="Contracts"
name="Contract" id="tabContract">
<apex:relatedList subject="{!account}"
list="Contracts" />
</apex:tab>
<apex:tab label="Opportunities" name="Opportunities"
id="tabOpp">
<apex:relatedList subject="{!account}"
list="opportunities" />
</apex:tab>
<apex:tab label="Cases" name="Case"
id="tabCases">
<apex:relatedList subject="{!account}"
list="Cases" />
</apex:tab>
<apex:tab label="Underwriting & Service" name="Underwriting_Service"
id="tabUndeSer">
<apex:relatedList subject="{!account}"
list="Underwriting_Service" />
</apex:tab>
<apex:tab label="Notes and Attachments" name="NotesAndAttachments"
id="tabNoteAtt">
<apex:relatedList subject="{!account}"
list="CombinedAttachments" />
</apex:tab>
</apex:tabPanel>
</apex:page>
Thank You - Julie
You need to go to the Underwriting_Service and find the Account Lookup Field "Child Relationship Name" use that Name in
list="Child Relationship Name" like I'm highlighting in the screenshot and let me know if it works for you.
Thanks So Much