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
ylandraylandra 

CampaignMember not searchable

I have this code:
[find 'test' IN ALL FIELDS RETURNING CampaignMember (CampaignId, ContactId, HasResponded, FirstRespondedDate WHERE HasResponded=true and FirstRespondedDate != NULL order by FirstRespondedDate desc)]
and I get an error 'Save error: entity type CampaignMember does not support search' in the Force IDE.

I can use SOQL but not SOSL on CampaignMember?

Any help would be appreciated.

Thanks!

Desiree
Best Answer chosen by ylandra
ShashForceShashForce
Hi Desiree,

SOSL supports only objects which are searchable from the UI. Campaign Members cannot be searched from the UI, so they will not support SOSL.

If this answers your question, please mark this as the Best Answer for this post, so that others can benefit from this post.

Thanks,
Shashank