# Time Based Criteria

**URL:** <https://community.hubspot.com/t/time-based-criteria/92033>\
**Category:** Lists, Lead Scoring & Workflows\
**Tags:** workflows\
**Created:** [October 18, 2023, 6:37am UTC](https://community.hubspot.com/t/time-based-criteria/92033 "2023-10-18T06:37:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![CDP2023](https://avatars.discourse-cdn.com/v4/letter/c/c0e974/32.png) [@CDP2023](https://community.hubspot.com/u/CDP2023)\
**Post date:** [October 18, 2023, 6:37am UTC](https://community.hubspot.com/t/time-based-criteria/92033/1 "2023-10-18T06:37:59Z")

</div>

Hi team!  
I was working on setting a hubspot enrollment criteria where in say suppose to enroll in contacts **only if they have performed a custom behavioral event A in the past 14 days**.  
I am wondering can such a filter criteria be set ?  
Also is it possible in Hubspot workflows to filter out contacts based on events which they have performed in the past? For example, lets say I want to create a workflow where in my contact have not performed custom behavioral event A in all their past lifetime as a contact?

---

<div class="post-metadata">

**Author:** ![HFisher7](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/hfisher7/32/101931_2.png) [@HFisher7](https://community.hubspot.com/u/HFisher7)\
**Post date:** [October 18, 2023, 7:34am UTC](https://community.hubspot.com/t/time-based-criteria/92033/2 "2023-10-18T07:34:45Z")

</div>

@CDP2023 - This is absolutely possible, this article should help you out here: [Set your workflow enrollment triggers](https://knowledge.hubspot.com/workflows/set-your-workflow-enrollment-triggers#:~:text=Contacts-,Behavioral%20events,-Enroll%20contacts%20that)

---

<div class="post-metadata">

**Author:** ![Olivia\_Hatchi](https://avatars.discourse-cdn.com/v4/letter/o/74df32/32.png) [@Olivia\_Hatchi](https://community.hubspot.com/u/Olivia_Hatchi)\
**Post date:** [October 18, 2023, 2:25pm UTC](https://community.hubspot.com/t/time-based-criteria/92033/3 "2023-10-18T14:25:35Z")

</div>

@CDP2023 Hi there 🙂  
My name is Olivia and I am happy to help you here! What you are hoping to do is absolutely possible. I will break it down into steps below:  
**Question 1**  
Build a contat based workflow and choose ‘When filter criteria is met’ for the tye of trigger. Next choose ‘Behavioral events (legacy)’ and chose the event you want to look at. Next chose ‘contact has completed’ and clicl on ‘refine this filter’. Next chose ‘Date’ and set it up as shown below.

 ![Screenshot 2023-10-18 at 11.22.10.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/5/051e8f154a3cf2c0cb215a921d288bab4a3a9327.png)

**Question 2**

Yes this is possible by using a combination of lists and workflows.  
1) Create and save a list of contacts that HAVE complated the behavioral event in question

2) Use a workflow enrollment filter of ‘list membership’ and chose ‘Contact IS NOT a member of list created in step 1’.  
This will give you contacts who have not completed the event.  
----------------  
I do hope these explanations help. If you need help with anything else please feel free to reply to me here to drop me a private message.  
Best  
Olivia

---

<div class="post-metadata">

**Author:** ![CDP2023](https://avatars.discourse-cdn.com/v4/letter/c/c0e974/32.png) [@CDP2023](https://community.hubspot.com/u/CDP2023)\
**Post date:** [October 19, 2023, 5:43am UTC](https://community.hubspot.com/t/time-based-criteria/92033/4 "2023-10-19T05:43:11Z")

</div>

- Hi [@Olivia\_Bagnall](https://community.hubspot.com/t5/user/viewprofilepage/user-id/359008) ! Thanks for these suggestions.  
On the first suggestion, you mentioned Behavioral Events (Legacy), however in Legacy events we cannot create our custom properties for the event which is why we need custom behavioral events.
- Further custom behavioral events are not seen under **Adding Filter** options. Is there a workaround regarding this?

 ![CDP2023_0-1697694050421.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/2/726b8a26666c3282f0c39734301523055914d443.png)

- As for the second suggestion, I will definetly try it out, thanks.

Regards,

CDP

---

<div class="post-metadata">

**Author:** ![Olivia\_Hatchi](https://avatars.discourse-cdn.com/v4/letter/o/74df32/32.png) [@Olivia\_Hatchi](https://community.hubspot.com/u/Olivia_Hatchi)\
**Post date:** [October 19, 2023, 2:28pm UTC](https://community.hubspot.com/t/time-based-criteria/92033/5 "2023-10-19T14:28:20Z")

</div>

@CDP2023 Ah yes you are right sorry, we need to stsay away from the legacy option.  
So here are the correct steps:  
1) Select the enrollment trigger of ‘Trigger when an event occours’.  
2) Select custom behavior events  
3) Chose the event in question.  
4) Add another trigger in the same group and chose the ‘occoured at’ option in the event properties. You can set the ‘is less than 14 days ago’ option there.

 ![Screenshot 2023-10-19 at 11.28.10.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/4/e42d59907f37573751346c52fea39067a960b18f.png)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![CDP2023](https://avatars.discourse-cdn.com/v4/letter/c/c0e974/32.png) [@CDP2023](https://community.hubspot.com/u/CDP2023)\
**Post date:** [October 21, 2023, 2:50am UTC](https://community.hubspot.com/t/time-based-criteria/92033/6 "2023-10-21T02:50:34Z")

</div>

Hey [@Olivia\_Bagnall](https://community.hubspot.com/t5/user/viewprofilepage/user-id/359008) ! Thanks a lot for the help. I had no idea that such an option existed.  
Regards,  
CDP

---

<div class="post-metadata">

**Author:** ![Olivia\_Hatchi](https://avatars.discourse-cdn.com/v4/letter/o/74df32/32.png) [@Olivia\_Hatchi](https://community.hubspot.com/u/Olivia_Hatchi)\
**Post date:** [October 21, 2023, 3:43pm UTC](https://community.hubspot.com/t/time-based-criteria/92033/7 "2023-10-21T15:43:38Z")

</div>

@CDP2023 You are welcome!

If you need any help with anything HubSpot in the future, please feel free to reach out.
