# Triggering a workflow every time a note is added to an object

**URL:** <https://community.hubspot.com/t/triggering-a-workflow-every-time-a-note-is-added-to-an-object/94914>\
**Category:** CRM\
**Tags:** workaround, workflows, professional, enterprise\
**Created:** [November 28, 2023, 10:29am UTC](https://community.hubspot.com/t/triggering-a-workflow-every-time-a-note-is-added-to-an-object/94914 "2023-11-28T10:29:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhilThomas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/philthomas/32/96352_2.png) [@PhilThomas](https://community.hubspot.com/u/PhilThomas)\
**Post date:** [November 28, 2023, 10:29am UTC](https://community.hubspot.com/t/triggering-a-workflow-every-time-a-note-is-added-to-an-object/94914/1 "2023-11-28T10:29:06Z")

</div>

We’re attempting to create a workflow that triggers every time a note is added to an object. The issues we’re currently experiencing are:  
**1)** ‘_Activities_’ can only be used to trigger a workflow initially, and cannot be used for re-enrollment.  
**2)** ‘_Last Activity Date_’ will only ever enroll the object into the workflow once a day, and we need the workflow to run for every note added.  
Are there any possible workarounds to accurately enroll objects into this workflow each time a note is added?

---

<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 28, 2023, 10:33am UTC](https://community.hubspot.com/t/triggering-a-workflow-every-time-a-note-is-added-to-an-object/94914/2 "2023-11-28T10:33:24Z")

</div>

Hi @PhilThomas,

Not in a way that is 100% satisfactory, but you can get close:

1. Create a contact / company / deal based list
2. Filter for activity type note and activity date is less than 1 day ago
3. Re-enroll contacts into workflow based on list membership

This means that only one enrollment can occur per day so it’s a bad solution when there are more than one notes per day, a good solution if it’s typically one max.

Best regards!

---

<div class="post-metadata">

**Author:** ![PhilThomas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/philthomas/32/96352_2.png) [@PhilThomas](https://community.hubspot.com/u/PhilThomas)\
**Post date:** [November 28, 2023, 4:56pm UTC](https://community.hubspot.com/t/triggering-a-workflow-every-time-a-note-is-added-to-an-object/94914/3 "2023-11-28T16:56:45Z")

</div>

Thank you Karsten!

You’re absolutely right, ideally we’d be able to trigger the workflow each time a note is added. Unfortunately the client may add multiple notes to an object per day, all of which need to trigger a workflow.

Hopefully one day in the future workflows will be able to use associated objects as re-enrollment triggers. Fingers crossed.

---

<div class="post-metadata">

**Author:** ![PhilThomas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/philthomas/32/96352_2.png) [@PhilThomas](https://community.hubspot.com/u/PhilThomas)\
**Post date:** [November 29, 2023, 11:58am UTC](https://community.hubspot.com/t/triggering-a-workflow-every-time-a-note-is-added-to-an-object/94914/4 "2023-11-29T11:58:34Z")

</div>

To anyone that stumbles upon this thread seeking a solution to a similar issue, we’ve managed to find the property that solves the issue.

“Number of Sales Activities” increments by 1 every time an activity is logged against an object record. Using this as a workflow event trigger, allowing re-enrollment, and specifying whether it’s “known” triggers each time an activity is added!

 ![PhilThomas_0-1701259104754.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/a/5a604fb91f15c353ae7b10b4d4a99babe14656b8.png)

---

<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 29, 2023, 11:59am UTC](https://community.hubspot.com/t/triggering-a-workflow-every-time-a-note-is-added-to-an-object/94914/5 "2023-11-29T11:59:47Z")

</div>

Hi @PhilThomas,

How are you determining whether the activity that was added was in fact a note?

---

<div class="post-metadata">

**Author:** ![PhilThomas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/philthomas/32/96352_2.png) [@PhilThomas](https://community.hubspot.com/u/PhilThomas)\
**Post date:** [November 29, 2023, 12:04pm UTC](https://community.hubspot.com/t/triggering-a-workflow-every-time-a-note-is-added-to-an-object/94914/6 "2023-11-29T12:04:18Z")

</div>

In this particular use case we didn’t need to identify whether it’s a note, we just needed a workflow to trigger whenever a note was added.

The actual workflow utilises custom code modules that obtain the “hs\_note\_body” values for all notes on a contact, then checks if the string values contain any text that matches a specific RegEx statement. If no matches are found it ends, or if any matches are found it modifies the “hs\_note\_body” values for those notes and updates them.
