+----------------------+-----------------------------------------------------------------------------------------------+
| Code | R28757 |
+----------------------+-----------------------------------------------------------------------------------------------+
| Entity | @General.Contacts.ContactMechanisms |
+----------------------+-----------------------------------------------------------------------------------------------+
| Name | AdministrativeRegionHasValueOnlyForAddresses |
+----------------------+-----------------------------------------------------------------------------------------------+
| Attribute | AdministrativeRegion |
+----------------------+-----------------------------------------------------------------------------------------------+
| Layer | Back-End |
+----------------------+-----------------------------------------------------------------------------------------------+
| Events | Commit |
+----------------------+-----------------------------------------------------------------------------------------------+
| Priority | Normal |
+----------------------+-----------------------------------------------------------------------------------------------+
| Modify | NO |
+----------------------+-----------------------------------------------------------------------------------------------+
| Action | Validate that: |
| |
|
| | If (AdministrativeRegion != null) |
| |
|
| | ContactMechanismType == Address |
+----------------------+-----------------------------------------------------------------------------------------------+
| Description | The Administrative Region attribute would be meaningful only if the current Contact Mechanism |
| | is of type Address. It would not make sense for phones, faxes and etc. |
+----------------------+-----------------------------------------------------------------------------------------------+
| Message | Administrative Region attribute has value but the contact mechanism type is |
| | "{ContactMechanismType}". |
| |
|
| | Administrative Region may have value only when the type of the contact mechanism is Address. |
| |
|
| | Please, clear the Administrative Region attribute or change the contact mechanism type to |
| | Address. |
+----------------------+-----------------------------------------------------------------------------------------------+
| Introduced In | 2018.2 |
| Version | |
+----------------------+-----------------------------------------------------------------------------------------------+
| Revocable | YES |
+----------------------+-----------------------------------------------------------------------------------------------+
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.