Question

3
Replies
890
Views
Close popover
Bob Reawaruw (BobReawaruw)
Atos
PEGA Architect
Atos
NL
BobReawaruw Member since 2018 56 posts
Atos
Posted: October 22, 2019
Last activity: October 22, 2019
Closed
Solved

Email validation on property

Issue

Pega provides multiple email validations OOTB
Edit Validate rule: ValidEmailAddress
Function: pyServicesUtilities • pyValidateEmailID

Email validation on property
OOTB Edit Validate: ValidEmailAddress
null: true
name: false
name@: false
name@domain: true
name@domain.com: true

Email validation via Validate rule
OOTB Function: pyServicesUtilities • pyValidateEmailID
[expression evaluates to true]
!@(Pega-IntegrationArchitect:pyServicesUtilities).pyValidateEmailID(.EmailProperty)
null: false
name: false
name@: false
name@domain: false
name@domain.com: true

Using the regex java code of the Function(pyServicesUtilities • pyValidateEmailID) in the Edit Validate(ValidEmailAddress) should result in validation on property:
null: false
name: false
name@: false
name@domain: false
name@domain.com: true

However, it results in:
null: true
name: false
name@: false
name@domain: true
name@domain.com: true

***Edited by Moderator: Lochan to update platform capability tags***

Case Management
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.