nlopez73
(Nicolás López Solano)
November 16, 2018, 1:09pm
1
Hello, we need to send an automatic mail two hours later than a record update.
We use notification_email and “on_time” trigger but have some problems with pyson expression. We try to use this pyson expression:
Greater(Get(Eval(u’self’, {}), u’write_date’, u’’), DateTime(delta_hours=2))
but it doesn’t work because the expression is wrong
What is the best way to do that?
Thanks in advance
1 Like
ced
(Cédric Krier)
November 16, 2018, 2:29pm
2
Could you explain what is wrong?
nlopez73
(Nicolás López Solano)
November 16, 2018, 5:24pm
3
When I write this expression at trigger form it appear as wrong. I think Greater function don’t allow datetime parameters
ced
(Cédric Krier)
November 16, 2018, 5:27pm
4
No it is because the default value for Get (which is used to define the type) is not a datetime.
nlopez73
(Nicolás López Solano)
November 16, 2018, 9:04pm
5
I tried to write it with default value for Get and:
Greater(Get(Eval(u’self’, {}), u’write_date’, DateTime(1)), DateTime(delta_hours=2)) don’t work but
Equal(Get(Eval(u’self’, {}), u’write_date’, DateTime(1)), DateTime(delta_hours=2)) was ok
ced
(Cédric Krier)
November 16, 2018, 9:41pm
6