You need to sign in to do that
Don't have an account?
Lokesh Rayapati4
By using triggers add lead to campaign abc record if the lead status is ' Open-Not Contacted ', and also remove campaign abc if the status in lead status is changed from 'Open- Not Contacted' to something else
Hi,
I'm struggling to complete this trigger.If the lead status is ' Open-Not Contacted ' then the record should be added to campaign record (Create one Record Name- abc) and also if the status is changed from ' Open-Not Contacted ' to something else then the record (abc) in campaign should be removed.
I firstly tried to created junction object by adding 2 master detail that is Lead and campaign but, When creating relationship Lead is not appearing to select. My idea is that we can do this with campaign member object. please help me in solving this trigger which involves
relationship.
Thanks in advance.
I'm struggling to complete this trigger.If the lead status is ' Open-Not Contacted ' then the record should be added to campaign record (Create one Record Name- abc) and also if the status is changed from ' Open-Not Contacted ' to something else then the record (abc) in campaign should be removed.
I firstly tried to created junction object by adding 2 master detail that is Lead and campaign but, When creating relationship Lead is not appearing to select. My idea is that we can do this with campaign member object. please help me in solving this trigger which involves
relationship.
Thanks in advance.
Try Below Trigger
Make Lead Lookup Field On Campaign = Lead__c Please Mark It As Best Answer If It Helps
Thank You!