To make sure I follow here is the transforms that are being used to calculate LCS. Also I want to call out that I did not write these transforms and I know I would need to update them. I am not 100% sure where I would start to look at setting the correct identity profile.
{
"id": "b183bb61-3294-4dc7-9ec4-c0d5cd4f0525",
"name": "WD - DateCompare - Determine Preterm LCS",
"type": "dateCompare",
"attributes": {
"firstDate": {
"type": "dateFormat",
"attributes": {
"input": {
"attributes": {
"input": {
"attributes": {
"expression": "+1d/h",
"roundUp": true,
"input": {
"attributes": {
"input": {
"attributes": {
"values": [
{
"attributes": {
"attributeName": "Term Date__c",
"sourceName": "Workday Production Sandbox"
},
"type": "accountAttribute"
},
{
"attributes": {
"attributeName": "Term Date__c",
"sourceName": "Workday Test Data"
},
"type": "accountAttribute"
},
"2999-12-13"
]
},
"type": "firstValid"
},
"inputFormat": "yyyy-MM-dd",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
}
},
"type": "dateMath"
},
"begin": 0,
"end": 10
},
"type": "substring"
},
"inputFormat": "yyyy-MM-dd",
"outputFormat": "ISO8601"
}
},
"secondDate": {
"type": "dateMath",
"attributes": {
"expression": "now-6h/s",
"roundUp": false
}
},
"operator": "gt",
"positiveCondition": "active",
"negativeCondition": "preterm"
},
"internal": false
}
{
"id": "1e7d0400-088a-4c66-bfdd-497d0cdee284",
"name": "WD - DateCompare - HireDate to TermDate",
"type": "dateCompare",
"attributes": {
"firstDate": {
"attributes": {
"input": {
"attributes": {
"values": [
{
"attributes": {
"sourceName": "Workday Production Sandbox",
"attributeName": "Hire Date__c"
},
"type": "accountAttribute"
},
"2021-08-06"
]
},
"type": "firstValid"
},
"inputFormat": "yyyy-MM-dd",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
},
"secondDate": {
"attributes": {
"input": {
"attributes": {
"values": [
{
"attributes": {
"sourceName": "Workday Production Sandbox",
"attributeName": "Term Date__c"
},
"type": "accountAttribute"
},
"1900-08-07"
]
},
"type": "firstValid"
},
"inputFormat": "yyyy-MM-dd",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
},
"operator": "GTE",
"positiveCondition": "active",
"negativeCondition": "terminate"
},
"internal": false
}
{
"id": "cb98b844-5016-4a7a-a1a1-b559dccb41bd",
"name": "WD - DateCompare - Pre Term and Inactive for LCS",
"type": "dateCompare",
"attributes": {
"firstDate": {
"type": "dateFormat",
"attributes": {
"input": {
"attributes": {
"input": {
"attributes": {
"expression": "+3d/d",
"roundUp": false,
"input": {
"attributes": {
"input": {
"attributes": {
"values": [
{
"attributes": {
"attributeName": "Term Date__c",
"sourceName": "Workday Production Sandbox"
},
"type": "accountAttribute"
},
"2999-12-31"
]
},
"type": "firstValid"
},
"inputFormat": "yyyy-MM-dd",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
}
},
"type": "dateMath"
},
"begin": 0,
"end": 10
},
"type": "substring"
},
"inputFormat": "yyyy-MM-dd",
"outputFormat": "ISO8601"
}
},
"secondDate": {
"attributes": {
"input": {
"attributes": {
"expression": "now/d",
"roundUp": false
},
"type": "dateMath"
},
"inputFormat": "yyyy-MM-dd'T'hh:mmX",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
},
"operator": "gte",
"positiveCondition": {
"attributes": {
"id": "Transform - DateCompare - Determine Preterm LCS"
},
"type": "reference"
},
"negativeCondition": "inactive"
},
"internal": false
}
{
"id": "1b91077f-863f-4a6f-9520-c399f38c6845",
"name": "WDSZ - Dual Source - cloudLifecycleState",
"type": "static",
"attributes": {
"workdayLifecycle": {
"attributes": {
"values": [
{
"attributes": {
"id": "WD - Static - Lifecycle State"
},
"type": "reference"
},
"null"
]
},
"type": "firstValid"
},
"seczettaLifecycle": {
"attributes": {
"values": [
{
"attributes": {
"id": "secZettaLifeCycleState"
},
"type": "reference"
},
"null"
]
},
"type": "firstValid"
},
"value": "#if($seczettaLifecycle=='no SecZetta account correlated')$workdayLifecycle#elseif(($workdayLifecycle=='inactive' || $workdayLifecycle=='preterm') && $seczettaLifecycle!='inactive')$seczettaLifecycle#{else}$workdayLifecycle#end"
},
"internal": false
}