You need to sign in to do that
Don't have an account?
Mike Chaput
Assign Leads
I need assistance with a trigger or Apex (i think it's Apex).
When a new lead comes in:
1) If the lead has a company name, check for that company in Accounts
2) If found, assign the new lead to the account owner.
Thanks for any assistance.
Mike
When a new lead comes in:
1) If the lead has a company name, check for that company in Accounts
2) If found, assign the new lead to the account owner.
Thanks for any assistance.
Mike
U have to write a piece of code to achieve this.Contact me vunnamsfdc@gmail.com for consulting.
Try this code:
Trigger assignaccount on Lead(after insert){
For(Lead l: Trigger.new)
{
List <Account>a =[Select Account name from account];
If (a.contains(l))
{
l.OwnerID = a.ACCOUNT.OwnerId;
}
}
}
Just to give idea to you i typed this code.just take this and work on it for your requirement