You need to sign in to do that
Don't have an account?
how to get the converted lead id from lead object.
i created Trigger for Lead. once lead is converted automatically account,contact,opportunity is created.i created two custom objects.i.e agency and broker objects.
i. once lead is converted then company name goes to account then agency is created based on accountname.
ii.once lead is converted then LeadName goes to Contact then Broker is Created based on contact name.
i created bulktrigger for this condtions.
But now i need once lead is converted directly we created agency and brokers records based on lead company name and lead name .how can solve this problem.pls help me........................
Hi,
It’s simple you have to simply make the condition which will identify that lead is converted or not inside the trigger code on Lead object. Try the below code as reference:
trigger ConvertLead on Lead (after insert,after update)
{
For(Lead l : trigger.new)
{
if(l.IsConverted)
{
Now make your code here to insert agency and brokers records based on lead company name and lead name
system.debug('@@@@@@@@@@@@@@@@@@');
}
}
}
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Thank for your post Navatar. Navatar i need one more requirement pls help me..............