SAP Knowledge Base Article - Public

2278115 - How to Create a Business Rule to Validate a Phone Number - SAP SuccessFactors Employee Central

Symptom

How to Create a Business Rule to Validate a Phone Number.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

SAP SuccessFactors Employee Central

Resolution

It is possible to create a Business Rule and use a Regular Expression to check the validity of the length and/or format of a Phone Number (or any STRING field).  

Please note that currently the rule will only execute in the UI (as Business Rules on Import of Phone Information is not currently supported). 

Below example of basic validation check for USA and India phone numbers (can be used onChange as well as onSave).

 

phoneInfoValidation.jpg

Note: the rule works better if one phone is maintained. As the Phone Information is a grid portlet, it is not possible to trigger the validation only over one of the values. Also, validation over the deleted values may still be performed.

See Also

2297965 - How to Create a Business Rule to Format a Phone Number

3222339 - Validation Business Rule Execution on Deletion of Grid Portlets OR Empty Grid Portlets

Keywords

enforce format; contact info; phone number, delete, phone information, grid, business rule, rule to validate , KBA , LOD-SF-EC-PER-NAT , National ID - Config, Rules, RBP, UI , LOD-SF-EC-PER-PRS , Personal Info - Config, Rules, RBP, UI , How To

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Suite all versions