Skip to main content
Peakon
Last Updated: 2023-06-23
Example: Sync Future Separation Data

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 Management
    domain in the System functional area.
  • Administrator
    access in Peakon.
  1. Access the
    Create Calculated Field
    task for the
    CF ESI Last Termination Event
    field to return the completed termination events for the worker and select the instance with the latest effective date.
  2. As you complete the task, consider:
    Option
    Description
    Field Name
    CF ESI Last Termination Event
    .
    Business Object
    Worker
    .
    Function
    Extract Single Instance
    .
    Calculation
    Source Field
    Termination History - Approved
    .
    Condition
    Is True
    .
    Sort Field
    Effective Date
    .
    Sort Direction
    Descending (Z to A)
    .
    Instance to be Returned
    First occurrence
    .
  3. Access the
    Create Calculated Field
    task for
    CF LRV Last Termination Date
    field to look up the effective date of the termination.
  4. As you complete the task, consider:
    Option
    Description
    Field Name
    CF LRV Last Termination Date
    .
    Business Object
    Worker
    .
    Function
    Lookup Related Value
    .
    Calculation
    Lookup Field
    CF ESI last Termination Event
    .
    Return Value
    Effective Date
    .
  5. Access the
    Create Calculated Field
    task for
    CF TF Last Termination Date is before Hire Date
    , to use the effective date returned in
    CF LRV Last Termination Date
    and return
    True
    if this date is before the Worker’s hire date.
  6. As you complete the task, consider:
    Option
    Description
    Field Name
    CF TF Last Termination Date is before Hire Date
    .
    Business Object
    Worker
    .
    Function
    True/False Condition
    .
    Calculation
    Condition 1
    Field
    CF LRV Last Termination Date
    .
    Operation
    less than
    .
    Comparison Type
    Value from another field
    .
    Comparison Value
    Hire Date
    .
    For contingent worker
    Contract End Date
    task, use the
    CF TF Last Termination Date is before Hire Date
    and
    CW Contract End Date
    logic in the next section.
  7. Access the
    Create Calculated Field
    task for
    CF EE Peakon Termination Date
    to check the results of
    CF TF Last Termination Date is before Hire Date
    and if they returned True, this calc field returns a blank date. If
    False
    , returns
    CF LRV Last Termination Date
    .
  8. As you complete the task, consider:
    Option
    Description
    Field Name
    CF EE Peakon Termination Date
    .
    Business Object
    Worker
    .
    Function
    Evaluate Expression
    .
    Calculation
    Field Type
    Date
    .
    Default Value
    CF LRV Last Termination Date
    .
    Evaluation 1
    Condition
    CF TF Last Termination Date is before Hire Date
    .
    Return Value If Condition is True
    Blank Date
    .
    For contingent worker
    Contract End Date
    task, use the
    CF Peakon EE Termination Date (w/Contract End Date)
    logic in the next section.
  9. Access the
    Create Calculated Field
    task for
    CF LRV Last Termination Reason
    to use the instance returned in
    CF ESI Last Termination Event
    and return the reason provided.
  10. As you complete the task, consider:
    Option
    Description
    Field Name
    CF LRV Last Termination Reason
    .
    Business Object
    Worker
    .
    Function
    Lookup Related Value
    .
    Calculation
    Lookup Field
    CF ESI Last Termination Event
    .
    Return Value
    Business Process Reason Text
    .
  11. Access the
    Create Calculated Field
    task for
    CFEE Peakon Termination Reason
    to check the results of
    CF TF Last Termination Date is before Hire Date
    and if they returned
    True
    , this calc field returns a blank reason. If
    False
    , returns
    CF LRV Last Termination Reason
    .
  12. As you complete the task, consider:
    Option
    Description
    Field Name
    CF EE Peakon Termination Reason
    .
    Business Object
    Worker
    .
    Function
    Evaluate Expression
    .
    Calculation
    Field Type
    Text
    .
    Default Value
    CF LRV Last Termination Reason
    .
    Evaluation 1
    Condition
    CF TF Last Termination Date is before Hire Date
    .
    Return Value If Condition is True
    Empty String
    .
  13. Create a calculated fields with contingent worker considerations: Access the
    Create Calculated Field
    task for
    CF TF Last Termination Date is before Hire Date and CW Contract End Date
      to return
    True
    if
    CF LRV Last Termination Date
    is less than
    Hire date
    , and the
    Worker
    is a
    Contingent Worker
    , and the
    Contract End Date
    is after the
    Hire Date
    .
  14. As you complete the task, consider:
    Option
    Description
    Field Name
    CF TF Last Termination Date is before Hire Date and CW Contract End Date
    .
    Business Object
    Worker
    .
    Function
    True/False Condition
    .
    Calculation
    Condition 1
    And/Or
    And
    .
    Field
    CF LRV Last Termination Date
    .
    Operation
    less than
    Comparison Type
    Value from another field
    .
    Comparison Type
    Hire Date
    .
    Condition 2
    And/Or
    And
    .
    Field
    Worker Type
    .
    Operator
    in the selection list
    .
    Comparison Type
    Value specified in this filter
    .
    Comparison Value
    Contingent Worker
    .
    Condition 3
    And/Or
    And
    .
    Field
    Contract End Date
    .
    Operator
    greater than
    .
    Comparison Type
    Value from another field
    .
    Comparison Value
    Hire Date
    .
  15. Access the
    Create Calculated Field
    task for
    CF Peakon EE Termination Date (w/Contract End Date)
    , to check the results of
    CF TF Last Termination Date is before Hire Date
    and
    CW Contract End Date
    . If they returned
    True
    , this calculated field returns the
    Contract End Date
    . If
    CF TF Last Termination Date is before Hire Date
    is
    True
    , it returns a blank date. If neither condition is met, returns
    CF LRV Last Termination Date
    .
  16. As you complete the task, consider:
    Option
    Description
    Field Name
    CF Peakon EE Termination Date (w/Contract End Date)
    .
    Business Object
    Worker
    .
    Function
    Evaluate Expression
    .
    Calculation
    Field Type
    Date
    .
    Default Value
    CF LRV Last Termination Date
    .
    Evaluation 1
    Condition
    CF TF Last Termination Date is before Hire Date and CW Contract End Date
    .
    Return Value If Condition is True
    Contract End Date
    .
    Evaluation 2
    Condition
    CF TF Last Termination Date is before Hire Date
    .
    Return Value If Condition is True
    Blank Date
    .
  17. Set Up Integration Field Overrides for a Connector.
  18. Navigate to Peakon and access
    Administration
    Integrations
    Workday
    .
  19. Click
    Sync all
    .
Peakon will return future separation dates on applicable employee records, as reflected in Workday.