Skip to main content
Administrator Guide
Last Updated: 2023-06-23
Example: Restrict a National ID Length

Example: Restrict a National ID Length

This example illustrates 1 way to restrict the number of digits that users can enter for a national ID.
Workday enables you to enter 10 or 12 digits for the Swedish national ID, Personnummer. You want to restrict the ID length so that users must enter 12 digits. You create a condition rule on the
Edit ID Information
business process using calculated fields to extract the Personnummer ID length.
Security:
Custom Field Management
in the System functional area.
  1. Access the
    Create Calculated Field
    task.
  2. Enter these values:
    Field
    Value
    Field Name
    CF National ID is Personnummer ID
    Business Object
    National Identifier
    Function
    True/False Condition
  3. Click
    OK
    .
  4. Enter these values:
    Field
    Value
    Field
    National Identifier
    Operator
    in the selection list
    Comparison Type
    Value specified in this filter
    Comparison Value
    Personal ID Number (Personnummer)
  5. Click
    OK
    , then click
    Create Another Calculation
    .
  6. Enter these values:
    Field
    Value
    Field Name
    CF Proposed Personnummer on Composite ID Event
    Business Object
    Composite Identifier Event
    Function
    Extract Single Instance
  7. Click
    OK
    .
  8. Enter these values:
    Field
    Value
    Source Field
    National IDs - Proposed
    Condition
    CF National ID is Personnummer ID
    Sort Field
    Current Entry Date
    Sort Direction
    Descending (Z to A)
    Instance to be returned
    First occurrence
  9. Click
    OK
    , then click
    Create Another Calculation
    .
  10. Enter these values:
    Field
    Value
    Field Name
    CF Unformatted Personnummer on Composite ID Event
    Business Object
    Composite Identifier Event
    Function
    Lookup Related Value
  11. Click
    OK
    .
  12. Enter these values:
    Field
    Value
    Lookup Field
    CF Proposed Personnummer on Composite ID Event
    Return Value
    National ID Unformatted
  13. Click
    OK
    , then click
    Create Another Calculation
    .
  14. Enter these values:
    Field
    Value
    Field Name
    CF Proposed Personnummer Length on Composite ID Event
    Business Object
    Composite Identifier Event
    Function
    Text Length
  15. Click
    OK
    .
  16. On the
    Text Field
    prompt, select
    CF Unformatted Personnummer on Composite ID Event
    .
  17. Click
    OK
    and click
    Done
    .
  18. Select
    Business Process
    Create Condition Rule
    from the related actions of the initiation step on the
    Edit ID Information
    business process.
  19. Create a condition rule with these 2 conditions:
    Field
    Rule Condition 1
    Rule Condition 2
    Description
    Personnummer ID
    Personnummer ID Length
    Source External Field or Condition Rule
    National ID Type - Proposed
    CF Proposed Personnummer Length on Composite ID Event
    Relational Operator
    any in the selection list
    equal to
    Comparison Type
    Value specified in this filter
    Value specified in this filter
    Comparison Value
    Personal ID Number (Personnummer)
    10
  20. Click
    OK
    .
  • Configure custom validation text for the initiation step on the
    Edit ID Information
    business process.
  • You can also restrict the Personnummer national ID length on the
    Edit Government IDs
    business process by creating:
    • Similar calculated fields based on the Government Identifier Event business object.
    • A similar condition rule on the initiation step of the
      Edit Government IDs
      business process.