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
mahimahi 

query on' Add Campaign' related list in Lead

Hi All,
 
Suppose i add 5 new campaigns one after other to a lead through 'Add Campaign'  related list of that lead.
 
Could i know which campaign has been added last?
 
Thanks,
Mahi
NasipuriNasipuri
Hi Mahi,
 
You can do  by the procedure as below.
 
First find out the lead id for the specific lead.
 
then fire the SOQL below

Select  CampaignId, LeadId from CampaignMember  WHERE LeadId ='lead_id'

Thanks,

Dinesh Nasipuri

dinesh.nasipuri@gmail.com