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
Miranda L 2Miranda L 2 

Opportunity Campaign Influence related list del not working

Hello there,
We are having Opportunity vf page and the related list Campaign Influence but when I click on the del in the related list then its not getting delete. Can you suggest where should I make changes in VF so that it will work.
here is my vf page code 
 
<apex:page standardController="Opportunity" extensions="OpportunityViewController">
    <div><c:OpportunityDHStageComponent rendered="{!isDynamicHedging}"/></div>
    <div><c:OpportunityBaseStageComponent rendered="{!!isDynamicHedging}"/></div>
    <apex:pageMessages id="messages"></apex:pageMessages>
    <apex:detail relatedList="true" showChatter="false" inlineEdit="true"/>
</apex:page>

Thanks
SwethaSwetha (Salesforce Developers) 
HI Miranda,
Are you seeing any error in the debug logs?
The issue you are facing seems to be related to Idea - 
https://trailblazer.salesforce.com/ideaView?id=087300000006n77AAA

The "legacy Campaign Influence" is not available through the API or Apex which could be the cause of why it is not accessible for deletion.

Please ensure you are using "Customizable campaign influence". Steps for enabling Customizable Campaign Influence:
https://help.salesforce.com/articleView?id=How-to-setup-Customizable-Campaign-Influence&language=en_US&type=1

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you