-
Re: How to set a date field to today in program smart list?
Gerard Donnelly Feb 12, 2018 8:32 AM (in response to Kerry Risley)Hi Kerry Risley,
Have you tried using this token {{system.date}}.
You can find for information here: System Tokens Glossary - Marketo Docs - Product Documentation
Thanks,
Gerard
-
-
Re: How to set a date field to today in program smart list?
Matjaž Jaušovec Feb 12, 2018 8:42 AM (in response to Kerry Risley)What about {{system.dateTime}}?
-
Re: How to set a date field to today in program smart list?
Matjaž Jaušovec Feb 12, 2018 8:45 AM (in response to Matjaž Jaušovec)Additionally, can you provide an example of the value the variable stores?
-
-
Re: How to set a date field to today in program smart list?
Dan Stevens. Feb 12, 2018 9:00 AM (in response to Kerry Risley)Kerry - you cannot use tokens in filters/triggers in smart lists. Tokens are only supported in (most) flow steps.
-
-
-
Re: How to set a date field to today in program smart list?
Matjaž Jaušovec Feb 12, 2018 8:34 AM (in response to Kerry Risley)Hi,
the {{system.date}} token returns the current date value. Maybe it can help.
Best;m
-
Re: How to set a date field to today in program smart list?
Valerie Whiting Feb 12, 2018 9:04 AM (in response to Kerry Risley)2 of 2 people found this helpfulHi Kerry Risley,
I don't think you can use tokens in smart lists, unfortunately :/ But you should be able to set the filter to "in time frame" "Today". Hopefully that helps!
Thanks,
Valerie
-
Re: How to set a date field to today in program smart list?
Gerard Donnelly Feb 12, 2018 9:10 AM (in response to Kerry Risley)Hi Kerry Risley,
As Valerie mentioned above adding the date constraint to your smart list filter should work.
-
Re: How to set a date field to today in program smart list?
Kyle McCormickFeb 12, 2018 3:54 PM (in response to Kerry Risley)
Hi Kerry Risley,
As others have mentioned before, I would use {{system.dateTime}} to set the date in the flow. This will set the time stamp to have the exact date and time it was filled in.
Then in the smart list, you have two options. The easy way is to use the "in future: 24 hours" filter. While this wont catch everyone that has a time stamp today, it will catch everyone within in next 24 hours. So if you are automating an email that sends everyday at 9 am, this will have everyone who's time stamp is between 9 am today and 8:59 am tomorrow.
The other more complex way if you absolutely need to only email people that have today's date is to use both the "in future" and "in past" filters. Keeping with the example above, if the email sends at 9 am daily, you can use "in future 15 hours" and "in past 9 hours" with advanced filter logic of (1 OR 2). This gets tricky with time zones and has more room for error, but if its something you need, it can be done. Just remember to calculate the number of hours between 12 am and the email send time (in past) and the number of hours between email send time and 11:59 pm (in future).
Hope this helps!