/
Validation rule: USYD_Email_Required

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_Email_Required

Validation rule Details

Name

USYD_Email_Required

Label

USYD_Email_Required

Object

Opportunity

Active

Yes

Formula

OR(
AND(
RecordType.DeveloperName = "OutrightGift",
ISCHANGED( StageName ),
ISPICKVAL( StageName , "Gift Handover"),
ISPICKVAL( AQC_ReceiptDelivery__c,"Email direct to donor(Default)"),
ISBLANK(Account.AQB__Email__c),
ISBLANK( Account.AQB__PrimaryContact__r.Email),
ISBLANK( Account.AQB__SecondaryContact__r.Email)
),
AND(
RecordType.DeveloperName = "OutrightGift",
ISCHANGED( StageName ),
Account.RecordType.DeveloperName = "Household",
ISPICKVAL( StageName , "Gift Handover"),
ISPICKVAL( AQC_ReceiptDelivery__c,"Email direct to donor(Default)"),
ISBLANK(Account.AQB__Email__c),
NOT(ISBLANK( Account.AQB__PrimaryContact__r.Email)),
NOT(AccountId = Account.AQB__PrimaryContact__r.Account.Id),
ISBLANK( Account.AQB__SecondaryContact__r.Email)
),
AND(
RecordType.DeveloperName = "OutrightGift",
ISCHANGED( StageName ),
Account.RecordType.DeveloperName = "Household",
ISPICKVAL( StageName , "Gift Handover"),
ISPICKVAL( AQC_ReceiptDelivery__c,"Email direct to donor(Default)"),
ISBLANK(Account.AQB__Email__c),
ISBLANK( Account.AQB__PrimaryContact__r.Email),
NOT(ISBLANK( Account.AQB__SecondaryContact__r.Email)),
NOT(AccountId = Account.AQB__SecondaryContact__r.Account.Id)
),
AND(
RecordType.DeveloperName = "OutrightGift",
ISCHANGED( StageName ),
Account.RecordType.DeveloperName = "Household",
ISPICKVAL( StageName , "Gift Handover"),
ISPICKVAL( AQC_ReceiptDelivery__c,"Email direct to donor(Default)"),
ISBLANK(Account.AQB__Email__c),
NOT(ISBLANK( Account.AQB__PrimaryContact__r.Email)),
NOT(AccountId = Account.AQB__PrimaryContact__r.Account.Id),
NOT(ISBLANK( Account.AQB__SecondaryContact__r.Email)),
NOT(AccountId = Account.AQB__SecondaryContact__r.Account.Id)
)
)

Error message

Please update the Account email or link a primary or secondary contact with email to the account before moving to the Gift Handover stage or change the Receipt Delivery

Error location

Top of Page

Description

When stage set to Gift Handover and recipient delivery = "Email direct to donor(Default)" , the Account email, preferred contact and secondary contact emails are blank throw an error to update any one email field.

Related content

Validation rule: USYD_Email_Required_ReceiptDeliveryEmail
Validation rule: USYD_Email_Required_ReceiptDeliveryEmail
More like this
Validation rule: USYD_TypeRequired
Validation rule: USYD_TypeRequired
More like this
Validation rule: USYD_Gift_Club_Status_Validation
Validation rule: USYD_Gift_Club_Status_Validation
More like this
Validation rule: USYD_SubTypeRequired
Validation rule: USYD_SubTypeRequired
More like this
Validation rule: Madatory_Email_Phone_Address_Org_Corp
Validation rule: Madatory_Email_Phone_Address_Org_Corp
More like this
Validation rule: Name_on_Instrument
Validation rule: Name_on_Instrument
More like this