John
John

Reputation: 1

Validation rule in Oracle Sales Cloud

Sorry if this is the wrong place to ask, but I'm writing this validation rule in Oracle Sales Cloud 11 on the account object (field : Address Line 1), and it always returns false even if true, I don't get it. I've tried several formulations, but the issue remains, thanks a lot for your help.

if (PrimaryAddressLine1 == null) {
  return false
}
else {
  return true
}

Upvotes: 0

Views: 351

Answers (2)

Ouroboros
Ouroboros

Reputation: 1

You can try the following code:

if (!PrimaryAddressLine1) { return false } else { return true }

Upvotes: 0

Instead of putting the validation at object level, can you place the required/mandatory requirement by configuring in Manage Address Formats and handle it there. Making Address Line 1 required at this Level will make it required across objects where OOTB Address Section is used.

Upvotes: 2

Related Questions