PYSON expression in the trigger condition field

Hi,

I did not fully understand the expected PYSON syntax in the ‘condition’ field of a trigger.
I want the condition to be true if the current record has its ‘state’ field equal to ‘lead’.

I tried :

Equal (Eval (‘state’, ‘’), ‘lead’)

Equal (‘self.state’, ‘’), ‘lead’)

(‘self.state’, ‘=’, ‘lead’)

which has been transformed into

[‘self.state’, ‘=’, ‘lead’]

What syntax to use, there are examples somewhere?

Regards

You can not use dotted notation in Eval, you must write:

Eval('self', {}).get('state') == 'lead'

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.