We’re early in our identity journey and I’m trying to return either “Inactive” or “Active” for my lifecycle states. I’m invoking the dateCompare function against today’s date and an employees termination date.
I encounter an error when the employee does not have a termination date - in other words still active, however my NULL handing isn’t working as expected:
Looking for some guidance here, whether to leverage the firstValid function (specifically where) to address active employees who do not have a termination date.
Initially the code returned InActive for every employee. However, once I updated the static termination date to a future date beyond ‘now’, this returned the expected result.