On Leave Lifecycle State Transform

I am currently working on a Lifecycle State that will activate when a person is on FMLA. This change should trigger when the “On Leave” flag in workday is turned on and switch the user back to Active when the flag is removed.

Can anybody tell me what needs to be removed from this transform?

 },
		  "OnLeaveLCS": {
            "attributes": {
                "negativeCondition": "N/A",
                "positiveCondition": "on leave",
                "firstDate": {
                    "attributes": {
                        "input": {
                            "attributes": {
                                "input": {
                                    "attributes": {
                                        "values": [
                                            {
                                                "attributes": {
                                                    "attributeName": "ON_LEAVE",
                                                    "sourceName": "Workday"
                                                },
                                                "type": "accountAttribute"
                                            },
                                            {
                                                "attributes": {
                                                    "value": "12/31/2499"
                                                },
                                                "type": "static"
                                            }
                                        ]
                                    },
                                    "type": "firstValid"
                                },
                                "inputFormat": "MM/dd/yyyy",
                                "outputFormat": "ISO8601"
                            },
                            "type": "dateFormat"
                        },
                        "expression": "+30d/d",
                        "roundUp": false
                    },
                    "type": "dateMath"
                },
                "operator": "lte",
                "secondDate": "now"
            },
            "type": "dateCompare"
        },


Two things i can think about it

  1. By looking at this transform logic looks like it will be Set Active all the time. If so, then move the “On Leave” else if condition move above the active logic.
  2. you need to set ““requiresPeriodicRefresh”: true” if you are looking on LCS to refresh automatically
1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.