Looking to build an Inactive LCM state. Have used FirstValid to ignore the failed/null scenarios incase user doesnt have the details yet, then used dateCompare to find the latest logon date, dateFormat to get it in a particular format for calculation, and finally the dateCompare to get the comparison. The DateCompare works if I remove “Firstvalid” from line 2 and give a true or false. Ideally I would want to see the value (latest date) but in this case the transform does not even display a True/False
{
"name": "Date Compare Transform",
"type": "firstValid",
"attributes": {
"type": "dateCompare",
"attributes": {
"firstDate": {
"type": "firstValid",
"attributes": {
"values": [
{
"attributes": {
"expression": "-60d",
"input": {
"attributes": {
"input": {
"attributes": {
"sourceName": "Active Directory",
"attributeName": "lastLogonTimestamp"
},
"type": "accountAttribute"
},
"inputFormat": "EPOCH_TIME_WIN32",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
}
},
"type": "dateMath"
},
""
]
}
},
"secondDate": {
"type": "firstValid",
"attributes": {
"values": [
{
"attributes": {
"expression": "-60d",
"input": {
"attributes": {
"input": {
"attributes": {
"sourceName": "Azure Active Directory"
"attributeName": "lastSignInDateTime"
},
"type": "accountAttribute"
},
"inputFormat": "dd MMM yyyy, HH:mm",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
}
},
"type": "dateMath"
},
""
]
}
},
"operator": "gte",
"positiveCondition": "true",
"negativeCondition": "false"
}
},
"internal": false
}