Building a workflow that sets a property for out of working hours

Hi,

I’m looking to build a workflow that sets a property for a deal that is created outside of working hours (e.g not 9am-4:30pm, Monday to Friday).

HubSpot doesn’t have the ability to set a time filter that isn’t exact date dependent. Is it best to use custom code to do this, or to use a third party integration?

How would Zapier work to filter capabilities based on time based conditions?

Thanks

Hi @MHarding27,

This can be achieved with two workflows and the workflow working hours in the workflow settings. This let’s you specify when a workflow action should execute. Manage workflow settings

  • Create a custom property “Created during working hours”
  • Workflow 1 runs within working hours, enrols deals where create date is less than 1 day ago and where the newly created property from above is unknown, them sets its value to Yes
  • Workflow 2 runs outside of working hours, enrols deals where create date is less than 1 day ago and where the newly created property from above is unknown, them sets its value to No
  • In both workflows specify that records should be unenrolled when the new property is known

No need for custom code or integrations.

Hi @MHarding27

What’s the end-goal, what are trying to do with that information?

You need to create a date & time property and then set that property in the workflow, like so:

This will set the date and time (even though that is not clear from the options in the workflow). So you will end up with something like this:

Hope that helps.

Frank