# Trigger for All associated deals

**URL:** <https://community.hubspot.com/t/trigger-for-all-associated-deals/69980>\
**Category:** Lists, Lead Scoring & Workflows\
**Tags:** workflows\
**Created:** [November 25, 2022, 6:56am UTC](https://community.hubspot.com/t/trigger-for-all-associated-deals/69980 "2022-11-25T06:56:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Annikasn](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Annikasn](https://community.hubspot.com/u/Annikasn)\
**Post date:** [November 25, 2022, 6:56am UTC](https://community.hubspot.com/t/trigger-for-all-associated-deals/69980/1 "2022-11-25T06:56:44Z")

</div>

In our case where a contact can have several deals, it would really help if there would be an option in the workflows triggers but also in the list filters that one could choose “All associated deals”… instead of the by default “Any associated deals”.  
Is there any other that is facing the same problem? And how have you solved it?

---

<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:** [November 25, 2022, 7:16am UTC](https://community.hubspot.com/t/trigger-for-all-associated-deals/69980/2 "2022-11-25T07:16:42Z")

</div>

Hi @Annikasn,

Can you specify what exactly you want to filter for? What is the use case?

Best regards

---

<div class="post-metadata">

**Author:** ![Annikasn](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Annikasn](https://community.hubspot.com/u/Annikasn)\
**Post date:** [November 25, 2022, 7:21am UTC](https://community.hubspot.com/t/trigger-for-all-associated-deals/69980/3 "2022-11-25T07:21:56Z")

</div>

I will try to keep it short 😄  
For example one case: A contact can have several deals, in our case contracts. And when no contract is active we want the contacts’ lifecycle stage to be changed to Evangelist. Now we can do this by a workflow but it’s only for those that have one deal. So for all those contacts with several deals we have a list, and this list needs to be manually checked… So I am trying to ficure out how we could avoid or minimixe the manual work we have to do.

---

<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:** [November 25, 2022, 7:23am UTC](https://community.hubspot.com/t/trigger-for-all-associated-deals/69980/4 "2022-11-25T07:23:44Z")

</div>

Hi @Annikasn,

How do you document on the deal record whether a contract is active?

Best regards!

---

<div class="post-metadata">

**Author:** ![Annikasn](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Annikasn](https://community.hubspot.com/u/Annikasn)\
**Post date:** [November 25, 2022, 7:28am UTC](https://community.hubspot.com/t/trigger-for-all-associated-deals/69980/5 "2022-11-25T07:28:21Z")

</div>

@karstenkoehler We have created workflows to set property Active/inactive based on the if contract end date is before or after Todays date. (Todays date is also set by 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:** [November 25, 2022, 7:33am UTC](https://community.hubspot.com/t/trigger-for-all-associated-deals/69980/6 "2022-11-25T07:33:41Z")

</div>

Hi @Annikasn,

You could leverage a calculation property here: [Create calculation and rollup properties](https://knowledge.hubspot.com/crm-setup/create-calculation-properties)

 ![karstenkoehler_0-1669361552057.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/3/d34360698364876aef60de92801d21d40e28492f.png)

Additionally, you would create a condition that the contract property value is active.

You can then easily enroll by the value of this property. If it’s 0 AND if number of associated deals is greater than 0, set lifecycle stage to evangelist. If it’s greater than 0, set lifecycle stage to customer.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Annikasn](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Annikasn](https://community.hubspot.com/u/Annikasn)\
**Post date:** [November 28, 2022, 9:08am UTC](https://community.hubspot.com/t/trigger-for-all-associated-deals/69980/7 "2022-11-28T09:08:14Z")

</div>

Great thanks @karstenkoehler ! I will have a look at this and see if it could work for us 🙂
