Hi Team,
I have created one transform which is throwing error on attribute where I mapped, I understood that this is due to null problem , what if it is not getting the attribute value for termination date then it is returning error, Could you please help here how this can be handle, it should return N/A if there is no value present in termination date for the source. however this transform working fine for those having the termination date mapped from the source. would need your help to understand how we can solve this null error handling?
{
"name": "Leaver-ServiceNowTicket",
"type": "static",
"attributes": {
"ServiceNowLeaver": {
"type": "dateCompare",
"attributes": {
"firstDate": {
"type": "dateFormat",
"attributes": {
"input": {
"type": "dateMath",
"attributes": {
"expression": "now"
}
},
"inputFormat": "yyyy-MM-dd'T'HH:mm",
"outputFormat": "ISO8601"
}
},
"secondDate": {
"type": "dateMath",
"attributes": {
"expression": "-2d",
"input": {
"type": "dateFormat",
"attributes": {
"input": {
"attributes": {
"sourceName": "DEV",
"attributeName": "Termination Date"
},
"type": "accountAttribute"
},
"inputFormat": "yyyy-MM-dd",
"outputFormat": "ISO8601"
}
}
}
},
"operator": "gte",
"positiveCondition": "true",
"negativeCondition": "false"
}
},
"value": "#if($ServiceNowLeaver == 'true')true#{else}false#end"
},
"internal": false
}