Example: Sync Future Separation Data
This example illustrates how to create a calculated field in Workday to sync future termination dates and reasons to Peakon. Separation dates and reasons only sync to Peakon on the day of the business process. You can set up calculated fields and enable them to be synced ahead of time. This can be done for both permanent and contingent workers.
When you sync Workday employees with separation dates in the future, you'll notice that Peakon doesn't populate their separation dates and they will remain categorized as effective employees. The separation dates and separation reasons are included in the sync on their effective date (the day of the termination or separation).
Security:
- Custom Field Managementdomain in the System functional area.
- Administratoraccess in Peakon.
- Access theCreate Calculated Fieldtask for theCF ESI Last Termination Eventfield to return the completed termination events for the worker and select the instance with the latest effective date.
- As you complete the task, consider:OptionDescriptionField NameCF ESI Last Termination Event.Business ObjectWorker.FunctionExtract Single Instance.CalculationSource FieldTermination History - Approved.ConditionIs True.Sort FieldEffective Date.Sort DirectionDescending (Z to A).Instance to be ReturnedFirst occurrence.
- Access theCreate Calculated Fieldtask forCF LRV Last Termination Datefield to look up the effective date of the termination.
- As you complete the task, consider:OptionDescriptionField NameCF LRV Last Termination Date.Business ObjectWorker.FunctionLookup Related Value.CalculationLookup FieldCF ESI last Termination Event.Return ValueEffective Date.
- Access theCreate Calculated Fieldtask forCF TF Last Termination Date is before Hire Date, to use the effective date returned inCF LRV Last Termination Dateand returnTrueif this date is before the Worker’s hire date.
- As you complete the task, consider:OptionDescriptionField NameCF TF Last Termination Date is before Hire Date.Business ObjectWorker.FunctionTrue/False Condition.CalculationCondition 1FieldCF LRV Last Termination Date.Operationless than.Comparison TypeValue from another field.Comparison ValueHire Date.For contingent workerContract End Datetask, use theCF TF Last Termination Date is before Hire DateandCW Contract End Datelogic in the next section.
- Access theCreate Calculated Fieldtask forCF EE Peakon Termination Dateto check the results ofCF TF Last Termination Date is before Hire Dateand if they returned True, this calc field returns a blank date. IfFalse, returnsCF LRV Last Termination Date.
- As you complete the task, consider:OptionDescriptionField NameCF EE Peakon Termination Date.Business ObjectWorker.FunctionEvaluate Expression.CalculationField TypeDate.Default ValueCF LRV Last Termination Date.Evaluation 1ConditionCF TF Last Termination Date is before Hire Date.Return Value If Condition is TrueBlank Date.For contingent workerContract End Datetask, use theCF Peakon EE Termination Date (w/Contract End Date)logic in the next section.
- Access theCreate Calculated Fieldtask forCF LRV Last Termination Reasonto use the instance returned inCF ESI Last Termination Eventand return the reason provided.
- As you complete the task, consider:OptionDescriptionField NameCF LRV Last Termination Reason.Business ObjectWorker.FunctionLookup Related Value.CalculationLookup FieldCF ESI Last Termination Event.Return ValueBusiness Process Reason Text.
- Access theCreate Calculated Fieldtask forCFEE Peakon Termination Reasonto check the results ofCF TF Last Termination Date is before Hire Dateand if they returnedTrue, this calc field returns a blank reason. IfFalse, returnsCF LRV Last Termination Reason.
- As you complete the task, consider:OptionDescriptionField NameCF EE Peakon Termination Reason.Business ObjectWorker.FunctionEvaluate Expression.CalculationField TypeText.Default ValueCF LRV Last Termination Reason.Evaluation 1ConditionCF TF Last Termination Date is before Hire Date.Return Value If Condition is TrueEmpty String.
- Create a calculated fields with contingent worker considerations: Access theCreate Calculated Fieldtask forCF TF Last Termination Date is before Hire Date and CW Contract End Dateto returnTrueifCF LRV Last Termination Dateis less thanHire date, and theWorkeris aContingent Worker, and theContract End Dateis after theHire Date.
- As you complete the task, consider:OptionDescriptionField NameCF TF Last Termination Date is before Hire Date and CW Contract End Date.Business ObjectWorker.FunctionTrue/False Condition.CalculationCondition 1And/OrAnd.FieldCF LRV Last Termination Date.Operationless thanComparison TypeValue from another field.Comparison TypeHire Date.Condition 2And/OrAnd.FieldWorker Type.Operatorin the selection list.Comparison TypeValue specified in this filter.Comparison ValueContingent Worker.Condition 3And/OrAnd.FieldContract End Date.Operatorgreater than.Comparison TypeValue from another field.Comparison ValueHire Date.
- Access theCreate Calculated Fieldtask forCF Peakon EE Termination Date (w/Contract End Date), to check the results ofCF TF Last Termination Date is before Hire DateandCW Contract End Date. If they returnedTrue, this calculated field returns theContract End Date. IfCF TF Last Termination Date is before Hire DateisTrue, it returns a blank date. If neither condition is met, returnsCF LRV Last Termination Date.
- As you complete the task, consider:OptionDescriptionField NameCF Peakon EE Termination Date (w/Contract End Date).Business ObjectWorker.FunctionEvaluate Expression.CalculationField TypeDate.Default ValueCF LRV Last Termination Date.Evaluation 1ConditionCF TF Last Termination Date is before Hire Date and CW Contract End Date.Return Value If Condition is TrueContract End Date.Evaluation 2ConditionCF TF Last Termination Date is before Hire Date.Return Value If Condition is TrueBlank Date.
- Set Up Integration Field Overrides for a Connector.
- Navigate to Peakon and access .
- ClickSync all.
Peakon will return future separation dates on applicable employee records, as reflected in Workday.