Question
When I use a custom date field as a trigger condition, what do Is within the previous and Is within the next do?
Answer
Is within the previous and Is within the next evaluate conditions based on an integer number of days. Each day is translated into 24-hour multiples on the backend.
For example, Custom date field | Is within the next | 3 means the condition will evaluate as true when the timestamp of the custom date field is within the next 72 hours.
The timestamps for date fields are a more complicated issue since they’re not exposed anywhere in the UI or the API. In general, the hidden timestamp related to a custom date uses 00:00 to 23:59. When a trigger uses the condition Is within next | 1 day, the trigger would be expected to run at 00:01 onwards.
For more information about creating triggers, see the article: Trigger conditions and actions reference.
28 comments
Holly
Hi Dane!
Unfortunately that is still not working. When I select "is within the previous=1" it still notifies me the day before instead of the day of. Any reason this might be?
This is for an automation and not a trigger.
0
Dane
I have tried to use "is within the previous = 1" and the trigger fired for the same day that was indicated on the Date custom field. More information here.
0
Damien Messé
When I use within the next 1 day, today's date is not taken into account.
How can I take today's date in triggers ?
Example :
If date is today's date then priority = urgent
Thanks for your help
0
Holly
I'm also having the same issue as Kalyn.
0
Kalyn Dobbs
Hi there,
I also have a specific use-case for this field in a Zendesk View that I'm trying to work out, and wondering if someone can help.
Our business is events, and I'd like to be able to create a View using the Date field that only shows tickets where Date = Today, so that we can prioritize getting back to people who have an event that day.
I've tried setting 'Is within the next' = 1 but that's only showing me tickets where the date is tomorrow. Using = 0 shows no results. Any ideas?
1
Marta Lagut
Hi all,
Has anyone figured out how to achieve what's described in this thread? I have:
- Custom Date 1 -> put manually by agent
I need to set up a text notification for the particular group of people IF the date put by the agent is later than 24h from the time the date was entered. Example:
Scenario1:
- today is 08/11/22
- agent puts in a date of 15/11/22 --> text notification sent as the date is more than 24h
Scenario 2:
- today is 08/11/22
- agent puts in a date of 09/11/22 --> text notification not sent as it's within 24h
I do understand what Mattia Tosti was referring to, it looks like you can only put number of days in "is within the next/previous", but we would need is "is NOT within the next/previous".
Thanks
0
John Brunker
Thanks 1264853595910. I tried this also but nothing is firing when I have this setting. I wonder if there is some other attribute that would need to change from the recipe above.
0
Raman Kalia
1264020481870 Hi, You can set up the automation to fire 0 (zero) days to the value of date field.
0
Raman Kalia
Hi, I've got another tangent altogether. I would like to utilize the date field but as per business day. I.e. If I'm setting the date value 10 days from now, it should not count the holidays in between. Any idea. Thanks
0
Clifford James Lacson
Hello Mattia,
Apologies for the late response as I was on leave last week :(
I will be creating a ticket for this so we can continue our discussion there.
Look for an email from me shortly!
0
Sign in to leave a comment.