You need to sign in to do that
Don't have an account?
Maxa
auto add leads to campaign trigger
Hi,I have leads with specific lead source, and i want automatically add those leads to campaign, but i don’t know how to reference this campaign field, here is what i have so far
Trigger addtonewmember on Lead (after update) { { for(lead ld : Trigger.new) { if(ld.rbi_lead_source__c == 'HFNZ') ld.Campaign = '701R000000050lw'; } } }}
But it tells me there is no such field as campaign, can anyone help with this is it possible at all?I can add them manually via report
Trigger addtonewmember on Lead (after update) { { for(lead ld : Trigger.new) { if(ld.rbi_lead_source__c == 'HFNZ') ld.Campaign = '701R000000050lw'; } } } }
did not insert it correctly here is better version of the code