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.- Access theCreate Calculated Fieldtask.
- Enter these values:FieldValueField NameCF National ID is Personnummer IDBusiness ObjectNational IdentifierFunctionTrue/False Condition
- ClickOK.
- Enter these values:FieldValueFieldNational IdentifierOperatorin the selection listComparison TypeValue specified in this filterComparison ValuePersonal ID Number (Personnummer)
- ClickOK, then clickCreate Another Calculation.
- Enter these values:FieldValueField NameCF Proposed Personnummer on Composite ID EventBusiness ObjectComposite Identifier EventFunctionExtract Single Instance
- ClickOK.
- Enter these values:FieldValueSource FieldNational IDs - ProposedConditionCF National ID is Personnummer IDSort FieldCurrent Entry DateSort DirectionDescending (Z to A)Instance to be returnedFirst occurrence
- ClickOK, then clickCreate Another Calculation.
- Enter these values:FieldValueField NameCF Unformatted Personnummer on Composite ID EventBusiness ObjectComposite Identifier EventFunctionLookup Related Value
- ClickOK.
- Enter these values:FieldValueLookup FieldCF Proposed Personnummer on Composite ID EventReturn ValueNational ID Unformatted
- ClickOK, then clickCreate Another Calculation.
- Enter these values:FieldValueField NameCF Proposed Personnummer Length on Composite ID EventBusiness ObjectComposite Identifier EventFunctionText Length
- ClickOK.
- On theText Fieldprompt, selectCF Unformatted Personnummer on Composite ID Event.
- ClickOKand clickDone.
- Select from the related actions of the initiation step on theEdit ID Informationbusiness process.
- Create a condition rule with these 2 conditions:FieldRule Condition 1Rule Condition 2DescriptionPersonnummer IDPersonnummer ID LengthSource External Field or Condition RuleNational ID Type - ProposedCF Proposed Personnummer Length on Composite ID EventRelational Operatorany in the selection listequal toComparison TypeValue specified in this filterValue specified in this filterComparison ValuePersonal ID Number (Personnummer)10
- ClickOK.
- Configure custom validation text for the initiation step on theEdit ID Informationbusiness process.
- You can also restrict the Personnummer national ID length on theEdit Government IDsbusiness process by creating:
- Similar calculated fields based on the Government Identifier Event business object.
- A similar condition rule on the initiation step of theEdit Government IDsbusiness process.