Validation rule in Oracle Sales Cloud

327 Views Asked by At

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
}
2

There are 2 best solutions below

0
Shivakumar Ayyanagowdar On

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.

1
Ouroboros On

You can try the following code:

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