I’m trying to set User Status as ‘PRE_HIRED’ if it is set to join in next 7 days but not able to conver it into transform.
below is something I reached upto, but surely I’m not able to mimic it after adding 7 days to current date or after subtracting it. Please help me with this usecase
"PRE_HIRE": {
"attributes": {
"firstDate": {
"attributes": {
"values": [
{
"attributes": {
"input": {
"attributes": {
"expression": "-7d",
"input": {
"attributes": {
"input": {
"attributes": {
"attributeName": "LATEST_HIREDT",
"sourceName": "Delimited File"
},
"type": "accountAttribute"
},
"inputFormat": "ddMMyyyy",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
},
"roundUp": true
},
"type": "dateMath"
},
"inputFormat": "yyyy-MM-dd'T'HH:mm",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
},
{
"attributes": {
"input": "3112999",
"inputFormat": "ddMMyyyy",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
}
]
},
"type": "firstValid"
},
"secondDate": {
"type": "dateMath",
"attributes": {
"expression": "now",
"roundUp": true
}
},
"operator": "lte",
"positiveCondition": "PRE_HIRED",
"negativeCondition": "Inactive"
},
"type": "dateCompare"
}