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
Greg-inficienceGreg-inficience 

BUG: standardsetcontroller fails when using campaign members contact list

I created a simple view page that can be triggered from a contact list. The code is fully tested and uploaded as a package here (no password):

 

https://login.salesforce.com/?startURL=%2Fpackaging%2FinstallPackage.apexp%3Fp0%3D04t80000000YNFO

 

In order to use it, you need to add the Test list button in the package to the Contacts List View in the contact serach layout.

 

if you use a contact list such as "all contacts which last name starts with M" or "My contacts", it works fine.

 

When using a contact list with the list definition criteria Filter By Campaign (Optional): ,selecting any campaign, opening the view and pushing the button, the following error message appears:

 

SELECT id FROM Contact WHERE ((CampaignId = '70180000000F7kn')) ^ ERROR at Row:1:Column:32 No such column 'CampaignId' on entity 'Contact'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.

As if the system was trying to pass the campaign ID to the standardsetcontroller insteads of the resulting list of contacts.

 

Any  hint?

mtbclimbermtbclimber

Thank you for reporting this.

 

 

Please open a case on this and add this bug# in the comments:  W-637124

Greg-inficienceGreg-inficience

Andrew,

 

Done. This case # 02814949

 

Thanks for your help.