I would like creating a workflow to be triggered when the events that have been marked as ‘closed’ and have a specific tag. And in the first step following the trigger, set a condition so that the step is skipped if the trigger’s result is 0
I would like the event triggers when the result of the condition is > 0 or in the next steps, the steps was skipped if the result of the condition is 0.
Query past events does not run or trigger your workflow. It’s only used to verify that your event filter is working as expected.
In your case, there wasn’t a single event in the past 7 days that matched your filter conditions.
So, let’s say you created this workflow a week ago. It would never have started because no event matching your filter conditions would have occurred to trigger it. No need for {{ result(“Event trigger”) | length > 0}} as you would never even start your workflow.
What kind of events do you want your workflow to trigger on? For problem records, we have a dedicated problem trigger where you can configure it to only fire for the “closed” state, which might be a cleaner fit for your use case.
Curious to hear more about what you’re trying to achieve!
Good to hear it’s working now! If you ever want to simplify the logic, you can use the new “trigger only on close” option we just added to the problem trigger.