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
Jonathan Wolff 7Jonathan Wolff 7 

Query Campaign Members in Visualforce with Campaign standart Controller

Hello, I want to build a Visualforce + Apex class to show informations of campaign members. The problem is, that I want the visualforce to be in a List button, but the List button and checkbox selection is only available in campaign and not in campaign members. Could you give me a code sample that when I select a campaign, it choses all campaign members and shows their names + adress?

Greetings
Jonathan
Best Answer chosen by Jonathan Wolff 7
PriyaPriya (Salesforce Developers) 

Hi Jonathan,

 

kindly check this example and modify the code as per your requirement :- 

https://salesforceglobe4u.blogspot.com/2020/03/how-to-display-account-and-its-related.html

If the above information helps, please mark it as best answer.

Regards,

Priya Ranjan