I have a requirement to assign Leads created via Email/WebForm to a specific user based on the Email Domain.
For example:
There is an Account A with Contacts whose email address are of the format: abz@company.com.
Now, If a new Lead gets created whose email address is xyz@company.com, Assign the Assigned User of Account A to this Lead.
I could do a findOne() where emailAddress LIKE (*company.com) on Contact table.
Has anyone done anything of this sorts?
I was wondering if there was a better way to achieve this.
Any ideas are welcome. Thank you!
For example:
There is an Account A with Contacts whose email address are of the format: abz@company.com.
Now, If a new Lead gets created whose email address is xyz@company.com, Assign the Assigned User of Account A to this Lead.
I could do a findOne() where emailAddress LIKE (*company.com) on Contact table.
Has anyone done anything of this sorts?
I was wondering if there was a better way to achieve this.
Any ideas are welcome. Thank you!
Comment