Hello guys,
Here is my new expression.
I'm trying to automate the creation of a send mail action corresponding to several conditions (inclusing a maintenance mode). I've tried the "ZAPIX" webfront to help me troubleshooting my JSON but I just have the standard "parameter error"
Do you see where the error can come from ?
Thank you by advance
Here is my new expression.
I'm trying to automate the creation of a send mail action corresponding to several conditions (inclusing a maintenance mode). I've tried the "ZAPIX" webfront to help me troubleshooting my JSON but I just have the standard "parameter error"
HTML Code:
{
"name": "Send mail to user a group",
"status": 0,
"esc_period": 3600,
"def_shortdata": "{TRIGGER.STATUS}: {TRIGGER.NAME}",
"def_longdata": "my great mail",
"filter": {
"evaltype": 3,
"formula": "A and (B or C) and D and E",
"conditions": [
{
"conditiontype": 16,
"operator": 7,
"formulaid": "A"
},
{
"conditiontype": 13,
"operator": 1,
"value": 10107,
"formulaid": "B"
},
{
"conditiontype": 13,
"operator": 1,
"value": 10108,
"formulaid": "C"
},
{
"conditiontype": 4,
"operator": 1,
"value": 3,
"formulaid": "D"
},
{
"conditiontype": 5,
"operator": 0,
"value": 1,
"formulaid": "E"
}
]
},
"operations": [
{
"operationtype": 0,
"esc_period": 0,
"esc_step_from": 1,
"esc_step_to": 2,
"evaltype": 0,
"opmessage_grp": [
{
"usrgrpid": 37
}
],
"opmessage": {
"default_msg": 1,
"mediatypeid": "1"
}
}
]
}
Do you see where the error can come from ?
Thank you by advance
Comment