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
lnryanlnryan 

Pass list of Campaign Member IDs from Manage Members to Visualforce or Apex

I'm trying to find away around the fact that there's no StandardListController for the CampaignMember object (wtf!?).

 

I need to create a custom button that passes IDs for the selected campaign members to a visualforce page (or if that's really impossible, an apex class).

 

Can someone please advise on how I could do this?

 

Thanks,

Lindsay

 

b-Forceb-Force

As there is no  StandardListController for the CampaignMember :(

you need to go for VF page which will show all campaign members for Related campaign ... and then go for next processing

 Is just a workaround :)

 

Thanks,

Bala

jkucerajkucera

A bit more background on why there's no standard list controller - there's a technical hurdle in supporting several features with campaign members such as lookups, list views, and standard list controllers.  It stems from the issue that there is no Name for CampaignMember, and if we used Campaign.Name = Lead.Name, it would have to be cascade updated any time either change, which is non-trivial.

 

Net net, it's still a roadmap item :(

lnryanlnryan

Thanks for the background , John. nice to know at least it's on the roadmap, even if it's not a solution for now.