In the workflow, I’m converting the data, comparing it, and setting true or false.
However, I can see the workflow output capturing the data, but it is not performing the date comparison or setting true or false.
What could be causing this issue?
“Define Variable”: {
"actionId": "sp:define-variable",
"attributes": {
"id": "sp:define-variable",
"variables": \[
{
"description": "thresholdISO",
"key": "thresholdISO",
"name": "thresholdISO",
"transforms": \[\],
"value": {
"attributes": {
"input": {
"attributes": {
"expression": "now-10d",
"roundUp": false
},
"name": "NowMinus10d",
"type": "dateMath"
},
"inputFormat": "yyyy-MM-dd'T'HH:mm",
"outputFormat": "ISO8601"
},
"name": "thresholdISO",
"type": "dateFormat"
}
},
{
"description": "lastLoginISO",
"key": "lastLoginISO",
"name": "lastLoginISO",
"transforms": \[\],
"value": {
"attributes": {
"input": {
"attributes": {
"value.$": "$.getAccounts.accounts\[?(@.sourceId=='e445dafd859ecc23cd9748c5178b40034')\].created"
},
"type": "static"
},
"inputFormat": "EEE MMM dd HH:mm:ss zzz yyyy",
"outputFormat": "ISO8601"
},
"name": "lastLoginISO",
"type": "dateFormat"
}
},
{
"description": "isWithin10Days",
"key": "isWithin10Days",
"name": "isWithin10Days",
"transforms": \[\],
"value": {
"attributes": {
"firstDate": {
"attributes": {
"value.$": "$.define.lastLoginISO"
},
"type": "static"
},
"negativeCondition": false,
"operator": "GTE",
"positiveCondition": true,
"secondDate": {
"attributes": {
"value.$": "$.define.thresholdISO"
},
"type": "static"
}
},
"name": "isWithin10Days",
"type": "dateCompare"
}
}
\]
},
"displayName": "",
"nextStep": "Verify Data Type 2",
"type": "Mutation"
}
below is the workflow output
{
"displayName": "Define Variable",
"input": {
"id": "sp:define-variable",
"variables": \[
{
"description": "thresholdISO",
"key": "thresholdISO",
"name": "thresholdISO",
"transforms": \[\],
"value": {
"attributes": {
"input": {
"attributes": {
"expression": "now-10d",
"roundUp": false
},
"name": "NowMinus10d",
"type": "dateMath"
},
"inputFormat": "yyyy-MM-dd'T'HH:mm",
"outputFormat": "ISO8601"
},
"name": "thresholdISO",
"type": "dateFormat"
}
},
{
"description": "lastLoginISO",
"key": "lastLoginISO",
"name": "lastLoginISO",
"transforms": \[\],
"value": {
"attributes": {
"input": {
"attributes": {
"value": "2026-08-12T18:44:21.554Z"
},
"type": "static"
},
"inputFormat": "EEE MMM dd HH:mm:ss zzz yyyy",
"outputFormat": "ISO8601"
},
"name": "lastLoginISO",
"type": "dateFormat"
}
},
{
"description": "isWithin10Days",
"key": "isWithin10Days",
"name": "isWithin10Days",
"transforms": \[\],
"value": {
"attributes": {
"firstDate": {
"attributes": {
"value.$": "$.define.lastLoginISO"
},
"type": "static"
},
"negativeCondition": false,
"operator": "GTE",
"positiveCondition": true,
"secondDate": {
"attributes": {
"value.$": "$.define.thresholdISO"
},
"type": "static"
}
},
"name": "isWithin10Days",
"type": "dateCompare"
}
}
\]
},
"stepName": "defineVariable",
"task": "sp:internal:operator:mutative",
"technicalName": "Define Variable"
}