/
Validation rule: USyd_Contact_AU_Mobile_Validation

Attention: Confluence is not suitable for the storage of highly confidential data. Please ensure that any data classified as Highly Protected is stored using a more secure platform.
If you have any questions, please refer to the University's data classification guide or contact ict.askcyber@sydney.edu.au

Validation rule: USyd_Contact_AU_Mobile_Validation

Validation rule Details

Name

USyd_Contact_AU_Mobile_Validation

Label

USyd_Contact_AU_Mobile_Validation

Object

Contact

Active

No

Formula

NOT (
OR ( $User.Alias = 'mule',
$User.Alias = 'ysemb',
$User.AQB__GiftBatchEntry__c = TRUE,
ISBLANK (TRIM(MobilePhone)),
AND ( ISNUMBER(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(MobilePhone , ".", ""),"-",""),"+","")," ",""),"(",""),")","")),
LEFT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(MobilePhone , ".", ""),"-",""),"+","")," ",""),"(",""),")",""),2) <> '61'),
AND ( ISNUMBER(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(MobilePhone , ".", ""),"-",""),"+","")," ",""),"(",""),")","")),
LEN(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(MobilePhone , ".", ""),"-",""),"+","")," ",""),"(",""),")","")) =11,
LEFT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(MobilePhone , ".", ""),"-",""),"+","")," ",""),"(",""),")",""),3) = '614' )
))

Error message

MobilePhone must be number.
AU MobilePhone format must be:
=> +61 4NN NNN NNN (Mobile)

Error location

Mobile

Description

Validation of AU Mobile

Related content

Validation rule: Usyd_Contact_Phone_Validation
Validation rule: Usyd_Contact_Phone_Validation
More like this
Validation rule: Usyd_Account_Phone_Validation
Validation rule: Usyd_Account_Phone_Validation
More like this
Validation rule: Usyd_Alternate_Channel_Phone_Validation
Validation rule: Usyd_Alternate_Channel_Phone_Validation
More like this
Validation rule: Usyd_Account_PermAddrPhone_Validation
Validation rule: Usyd_Account_PermAddrPhone_Validation
More like this
Validation rule: USyd_No_Phone_or_Email
Validation rule: USyd_No_Phone_or_Email
More like this
Validation rule: USYD_MA_Phone_Type_is_Mandatory
Validation rule: USYD_MA_Phone_Type_is_Mandatory
More like this