SE with OpportunityTeamMember Standard controller.SAVE
Last updated 2022-02-10 ·Reference W-1891721 ·Reported By 0 users
Summary
When an OpportunityTeamMember record is updated and standard controller save method is invoked in a VF page, Internal Server Error is reported.
Repro
1. Login to any org, enable Opportunity Teams, and create a opportunity with one OTM.
2. Create the following apex pages:
3.Navigate to <Your localhost>/apex/OpportunityTeamMemberEdit?id=00qZ0000000jlXw ---Replace the OTM id with the OTM created above.
Notice the Internal Server Error.
1.Label:OppEdit
<apex:page standardController="Opportunity">
<apex:sectionHeader title="Opportunity Team"/>
<apex:form >
<apex:pageBlock title="" mode="edit">
<apex:pageBlockButtons title="Opportunity Team Member Edit">
<apex:messages style="color:#CC0000;font-weight:bold;"/>
<apex:commandButton value="Save" action="{!save}"/>
</apex:pageBlockButtons>
<apex:pageblockSection title="Information" collapsible="FASLE">
<apex:outputField value="{!Opportunity.Account}" />
<apex:outputField value="{!Opportunity.Id}" />
<apex:pageBlockSectionItem />
<apex:inputField value="{!Opportunity.Type}" required="TRUE"/>
<apex:pageBlockSectionItem />
</apex:pageblockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
2.Label: OpportunityTeamMemberEdit
<apex:page standardController="OpportunityTeamMember">
<apex:sectionHeader title="Opportunity Team"/>
<apex:form >
<apex:pageBlock title="" mode="edit">
<apex:pageBlockButtons title="Opportunity Team Member Edit">
<apex:messages style="color:#CC0000;font-weight:bold;"/>
<apex:commandButton value="Save" action="{!save}"/>
<apex:commandButton value="Cancel" action="{!URLFOR('/'&NULLVALUE($CurrentPage.Parameters.retURL,OpportunityTeamMember.OpportunityId))}" immediate="TRUE"/>
</apex:pageBlockButtons>
<apex:pageblockSection title="Information" collapsible="FASLE">
<apex:outputField value="{!OpportunityTeamMember.UserId}" />
<apex:outputField value="{!OpportunityTeamMember.OpportunityId}" />
<apex:pageBlockSectionItem />
<apex:inputField value="{!OpportunityTeamMember.TeamMemberRole}" required="TRUE"/>
<apex:pageBlockSectionItem />
<apex:inputField value="{!OpportunityTeamMember.OpportunityAccessLevel}" required="TRUE"/>
</apex:pageblockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
Workaround
None at present.
Reported By (0)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.