Email Domain Lookup

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ferbguy
    Junior Member
    • Aug 2022
    • 17

    Email Domain Lookup

    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!
  • Kharg
    Senior Member
    • Jun 2021
    • 410

    #2
    Hello,


    I’ve done something similar by building a custom controller/api action to use as a web-to-lead url where all the incoming leads would be assigned directly to a user.

    but seems like you could solve your issue by using a simple hook.
    Last edited by Kharg; 11-18-2024, 01:41 PM.

    Comment

    • emillod
      Active Community Member
      • Apr 2017
      • 1405

      #3
      I love hooks, but i think for this you can even use formulas

      Comment


      • Kharg
        Kharg commented
        Editing a comment
        Yes, you are right, much easier to accomplish with Formulas
    Working...