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

CampaignHistory related list???

I have a client who is interested in pulling Contact records along with its related CampaignHistory records. I wasn't even aware there was a CampaignHistory related list but it is there in Salesforce. When I looked for it in the API there is no CampaignHistory object. Can someone shed some light on this object?

Thanks much.
The Campaign History related list on a Contact shows the associated campaigns for a contact, lead, or person account plus the individual’s current status on the campaign. The list does not retain the previous statuses for any campaign nor does it include any campaign that you do not have access to view via sharing settings.
I believe if you try to access the CampaignMember object, then it should give you the desired results. It has all the attributes from the Campaign History related list i.e. Contact ID, Campaign ID, Status, etc etc.