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
ssoftwaressoftware 

Campaign - add opportunity button

Hi All,

 

In the Campaign detail page, for the opportunity related list, there is a "New" button to create and add a new opportunity to the Campaign.

 

I would like to provide an "Add" custom button to this related list so that one can select and add an existing opportunity.

 

I understand that one way to do this is create a list button and add it to the Opportunity List View search layout, but I do not know the code that needs to go there in the button.

 

Can someone let me know what is the best way to go about this?

 

Thanks in advance!!