# Workflow for line items

**URL:** <https://community.hubspot.com/t/workflow-for-line-items/73606>\
**Category:** Sales Hub Tools\
**Tags:** professional\
**Created:** [January 24, 2023, 2:33pm UTC](https://community.hubspot.com/t/workflow-for-line-items/73606 "2023-01-24T14:33:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MCoughlan6](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@MCoughlan6](https://community.hubspot.com/u/MCoughlan6)\
**Post date:** [January 24, 2023, 2:33pm UTC](https://community.hubspot.com/t/workflow-for-line-items/73606/1 "2023-01-24T14:33:08Z")

</div>

Hi guys, I currently have a workflow setup that is triggered when a deal is closed won. What I’d like to do, is only trigger the workflow if the deal is close won, AND there is a specific line item included in the closed deal.

If it helps to explain why - we have subscription and consumable line items for our deals, and only want this workflow to trigger when a deal includes a subscription line item (one of several options).

We have Saleshub Professional.

Any advice?

---

<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:** [January 24, 2023, 2:37pm UTC](https://community.hubspot.com/t/workflow-for-line-items/73606/2 "2023-01-24T14:37:16Z")

</div>

Hi @MCoughlan6,

You can do that by adding a filter for _Line item_:

 ![karstenkoehler_0-1674570977031.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/0/201cfe3ffee7565793ed7a27158cdd563a55c779.png)

An easy way to filter for deals with specific line items would be specifying a name:

 ![karstenkoehler_1-1674571015243.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/d/1d9e7b90c9f5e38dacfb64f8577eabc2ae524b8a.png)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![franksteiner79](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/franksteiner79/32/34443_2.png) [@franksteiner79](https://community.hubspot.com/u/franksteiner79)\
**Post date:** [January 24, 2023, 2:39pm UTC](https://community.hubspot.com/t/workflow-for-line-items/73606/3 "2023-01-24T14:39:48Z")

</div>

Hi @MCoughlan6

You’d simply add and “AND” rule to the enrolment trigger and make it a line item property.

 ![Screenshot 2023-01-24 at 15.36.51.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/768f9499c2041ab8b630602c378c7fce601dd57f.png)

There are a couple of options, I’d say line item “name” and line item “SKU” are the best options to capture to line item you want. This criteria would only enrol deals which meet both criteria.

Hope that helps.

Frank

---

<div class="post-metadata">

**Author:** ![MCoughlan6](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@MCoughlan6](https://community.hubspot.com/u/MCoughlan6)\
**Post date:** [January 24, 2023, 2:53pm UTC](https://community.hubspot.com/t/workflow-for-line-items/73606/4 "2023-01-24T14:53:18Z")

</div>

Ah thanks so much guys, I completely missed the line item option and was trying to find it within the deal section!

That will work for us, thanks again
