Setting leads based on zip codes

Hi all, I am trying to set up logic to auto assign leads based on zip codes. I know how to do this by state using a business rule and process definition but setting up a rule with 41K+ zip codes seems a bit much. any ideas on the best way to set this up?

Parents Reply Children
  • Hi Tony,

    Yes the zip to territory module I set up in Sugar, just a few basic fields:

    Zip code

    Territory Name

    Sales Rep

    I used alignmix to give me a zip code file that aligns my reps and thats what i plugged into the CRM. 

    In the lead I have created a field to pull in the sales reps name and another field to pull in the territory. These two fields are what I'm asking Zapier to update based on the zip code. 

    I used Zapier to then find new lead records and I'm using the zip code from the new record to find the second record I'm using in Zapier, which is the lead zip code in the zip code module. Then using Zapier to find a record which is the new lead record. Then using zapier to update the record on the lead. Four total steps, broken down below for a little more clarity.

    1. New Record - New record in leads module

    2. Find Record - Find a record in the Zip code module using the postal code from the lead record

    3. Find Record - Find the lead record using the zip code

    4. Update Record - Update the leads module fields - Sales Rep and Territory Name

    After that i built a process definition to look at new lead records and first updated records. I used the criteria that the sales rep field in not blank. This way the first time zapier makes the update it will qualify as the first update on the lead record and trigger my process and not continue to trigger down the line. You could define the process to do this on all update if you needed.

    The process definition I used is similar to the one in the article below. I just removed the business rule section since I now have the sales reps name on the lead record. Im using this to then utilize the process of "assign to" on the activity in the process definition. 

    I initially was using zapier to update the assign to field directly but that didn't actually update the record. I'm still learning the ins and outs of sugar and I know the assign to field is a unique field that plays by different rules, so this process definition got me around that.  

    I could be going about this wrong but since there is no clear guide on this and its not an out of the box feature, this was what I came up with as a new sugar user. I hope this helps!

    support.sugarcrm.com/.../

  • Thank you so much  

    I will try this method on a demo.

    Apologies for my delayed reply, I caught Covid and been in catch-up mode last couple of days.

    Best wishes,

    Tony