# Triggering a workflow based on contact's primary association change.

**URL:** <https://community.hubspot.com/t/triggering-a-workflow-based-on-contacts-primary-association-change/82274>\
**Category:** Lists, Lead Scoring & Workflows\
**Tags:** contacts\
**Created:** [May 30, 2023, 4:13pm UTC](https://community.hubspot.com/t/triggering-a-workflow-based-on-contacts-primary-association-change/82274 "2023-05-30T16:13:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![coolraj12](https://avatars.discourse-cdn.com/v4/letter/c/ed8c4c/32.png) [@coolraj12](https://community.hubspot.com/u/coolraj12)\
**Post date:** [May 30, 2023, 4:13pm UTC](https://community.hubspot.com/t/triggering-a-workflow-based-on-contacts-primary-association-change/82274/1 "2023-05-30T16:13:34Z")

</div>

Hello fellow Devs,

I have a scenario where I want to trigger a workflow when a contact’s primary association to a company changes .

For an example

Contact 1 associated to comp 1(primary) and comp 2 ( non primary)

Modified to

Contact 1 now associated to comp 1(non primary) comp 2 ( primary)

I want to trigger an workflow based on the above event. Any idea/suggestions are greatly appreciated .

Thanks,

Raj

---

<div class="post-metadata">

**Author:** ![PamCotton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pamcotton/32/47916_2.png) [@PamCotton](https://community.hubspot.com/u/PamCotton)\
**Post date:** [May 30, 2023, 8:00pm UTC](https://community.hubspot.com/t/triggering-a-workflow-based-on-contacts-primary-association-change/82274/2 "2023-05-30T20:00:24Z")

</div>

Hello @coolraj12, thank you for providing all the details for your goal!  
I want to invite some of our top experts to this conversation @jolle @ndwilliams3 any recommendations for @coolraj12 matter?

Thank you,

Pam

---

<div class="post-metadata">

**Author:** ![OPerek-Clark](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/operek-clark/32/2050_2.png) [@OPerek-Clark](https://community.hubspot.com/u/OPerek-Clark)\
**Post date:** [May 31, 2023, 8:14pm UTC](https://community.hubspot.com/t/triggering-a-workflow-based-on-contacts-primary-association-change/82274/3 "2023-05-31T20:14:57Z")

</div>

Hi @coolraj12,

To confirm, is the goal to create a workflow to faciliate the update to contact-company association OR to take specific actions for that contact when this happens?

---

<div class="post-metadata">

**Author:** ![coolraj12](https://avatars.discourse-cdn.com/v4/letter/c/ed8c4c/32.png) [@coolraj12](https://community.hubspot.com/u/coolraj12)\
**Post date:** [June 1, 2023, 9:11am UTC](https://community.hubspot.com/t/triggering-a-workflow-based-on-contacts-primary-association-change/82274/4 "2023-06-01T09:11:31Z")

</div>

Hi @OPerek-Clark ,

I want to take speific actions for that contact when this event occurs. So I was basically trying to find for triggering conditions for this event.

Regards,

Raj

---

<div class="post-metadata">

**Author:** ![rdurling](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rdurling/32/6484_2.png) [@rdurling](https://community.hubspot.com/u/rdurling)\
**Post date:** [June 2, 2023, 6:06pm UTC](https://community.hubspot.com/t/triggering-a-workflow-based-on-contacts-primary-association-change/82274/5 "2023-06-02T18:06:10Z")

</div>

Hi @coolraj12 ,

Unless I’m misunderstanding your intention, you should be able to do this using association labels. If a Contact’s Primary associated Company changes, you can use the “Primary” association label as a trigger, with the “is known” operator. Anytime the primary company changes, a Contact would be eligible to enroll (or re-enroll) into the workflow.

Hope this helps!

Ryan

---

<div class="post-metadata">

**Author:** ![coolraj12](https://avatars.discourse-cdn.com/v4/letter/c/ed8c4c/32.png) [@coolraj12](https://community.hubspot.com/u/coolraj12)\
**Post date:** [June 6, 2023, 9:41am UTC](https://community.hubspot.com/t/triggering-a-workflow-based-on-contacts-primary-association-change/82274/6 "2023-06-06T09:41:26Z")

</div>

hello Ryan,

Thanks for your reply.

I have tried your suggesstion and looks like the condiiton is not available for re-enrollment.

- The following enrollment conditions can’t be used for re-enrollment.

- **Primary associated company** is known
