A term date comes in as 8/14/2023 and rather than evaluating for other logic it chooses the evaluation for inactiveDelete. I’m guessing I have the dateMath wrong. I thought it was working previously in other testing. The inactiveDelete is for accounts older than 30 days.
I was thinking it was because the data came in as 08/14/2023, but I tried it as 8/14/2023 with the same result.
We want this to evaluate as false as it isn’t 30 days past the term date and move on to other evaluations with other ifelse statements not shown. Other lifecycle states seem to evaluate appropriatly.
"inactiveDelete": {
"attributes": {
"negativeCondition": "no",
"positiveCondition": "yes",
"firstDate": "now",
"operator": "gte",
"secondDate": {
"type": "dateFormat",
"attributes": {
"inputFormat": "yyyy-MM-dd",
"outputFormat": "ISO8601",
"input": {
"attributes": {
"input": {
"attributes": {
"input": {
"attributes": {
"values": [
{
"attributes": {
"attributeName": "TERMINATION_DATE",
"sourceName": "TST"
},
"type": "accountAttribute"
},
{
"attributes": {
"value": "12/30/2099"
},
"type": "static"
}
]
},
"type": "firstValid"
},
"inputFormat": "MM/dd/yyyy",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
},
"expression": "+30d/d",
"roundUp": false
},
"type": "dateMath"
}
}
}
},
"type": "dateCompare"
},
"value": "#if($inactiveDelete == 'yes')inactiveDelete....