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
RepsGRepsG 

Related List Issue/Spring 13 Issue?

I have overridden the account view with my own visualforce page and i am noticing that the sandbox and the production environment handle the same code differently.

 

For example for the following bit of code in my VF page

 

<apex:tab style="background-color: #FFFFFF" label="Campaigns" name="Campaigns" id="tabCampaign" rendered="{!account.RecordtypeId == '012200000000RMCAA2'}">
            <apex:relatedList subject="{!account}" list="personCampaignMembers" />
</apex:tab>

 

In the Full Sandbox (Spring 13) the above code works and I am able to see the Campaign related list for Customer A

 

In Production I get the following error for the same Customer A: 'PersonCampaignMembers' is not a valid child relationship name for entity customer.

 

It works in production when i change:

<apex:relatedList subject="{!account}" list="personCampaignMembers" />

to

<apex:relatedList subject="{!account}" list="CampaignMembers" />

 

But the change then cause the same error in my full sandbox.

 

Is an issue with Spring 13 release? will they resolve it before it is released?

 

 

 

 

 

between the

N.V.V.L.Vinay KumarN.V.V.L.Vinay Kumar

Check the child relationship name in both sandbox nad production

RepsGRepsG

They are exactly the same.

 

Both org show the relationship name for CampaignMember as 'PersonCampaignMembers'