# Workflow to Allocate Contact Owners using Post Code

**URL:** <https://community.hubspot.com/t/workflow-to-allocate-contact-owners-using-post-code/113582>\
**Category:** CRM\
**Tags:** workflows\
**Created:** [August 2, 2024, 11:47am UTC](https://community.hubspot.com/t/workflow-to-allocate-contact-owners-using-post-code/113582 "2024-08-02T11:47:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EChapman](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@EChapman](https://community.hubspot.com/u/EChapman)\
**Post date:** [August 2, 2024, 11:47am UTC](https://community.hubspot.com/t/workflow-to-allocate-contact-owners-using-post-code/113582/1 "2024-08-02T11:47:01Z")

</div>

The sales team in our company are allocated regionally, and we’d like new leads to be allocated to each person based on the post code in their record.

This comes from registration interest forms or brouchure download forms.

Does this have to be done by custom code or can we set this up ourselves using a workflow?

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [August 2, 2024, 12:19pm UTC](https://community.hubspot.com/t/workflow-to-allocate-contact-owners-using-post-code/113582/2 "2024-08-02T12:19:48Z")

</div>

Hi @EChapman,

No custom code required – enroll contacts based on ‘When Filter criteria is met’ and select ‘Postal code is known’ (enable reenrollment).

Then click the + sign, add a branch (‘AND/OR’) and select postal code again. You can now define a set of postal codes for each branch. Under the branch, use the ‘Set property value’ workflow action to specify the contact owner.

Let me know of you have any follow-up questions!

---

<div class="post-metadata">

**Author:** ![Lucila-Andimol](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lucila-andimol/32/69276_2.png) [@Lucila-Andimol](https://community.hubspot.com/u/Lucila-Andimol)\
**Post date:** [August 2, 2024, 12:45pm UTC](https://community.hubspot.com/t/workflow-to-allocate-contact-owners-using-post-code/113582/3 "2024-08-02T12:45:01Z")

</div>

Hey @EChapman

you can do this yourself

by choosing any of these options in the workflow

 ![Screenshot 2024-08-02 at 14.42.32.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/a/ea2f6217b1a1abdbc1d360fb463dcbb2d0598caf.png)

of course you will need to customize for all the postal codes that you have.

You can also do this with custom code avoiding to setit up manually and easier to update

for example using post code ranges from 100 - 1000 and then 2000-3000 and so on,

but I don’t think in this case it would be worth the effort.

Hope this helps
