R28407 PartyContactMechanism - At Most One Default Type

Code R28407
Entity General.Contacts.PartyContactMechanisms Entity
Name AtMostOneDefaultType
Attribute IsDefault
Layer Back-End
Events Commit
Modify NO
Action Validate that:

There is only one PartyContactMechanism for which  'PartyContactMechanism.IsDefault = True' AND 'PartyContactMechanism.Party = current PartyContactMechanism.Party'.
Description For each party, one of its 'Party Contact Mechanism' can be set as a default. The default record will be used for certain automations in the system. For Example, when selecting a Customer in Sales Orders, if a default Party Contact Mechanism is set for the customer's party then this record is going to be automatically set in the field 'Ship To Party Contact Mechanism'.

In order to make sure that the right Contact Mechanism is going to be automatically selected, the current rule validates that there is only one Party Contact Mechanism in whose definition 'Is Default' is checked.
Message For party '[PartyContactMechanism.Party]' there is more than one party contact mechanism where 'Is Default' is checked

Please, choose only one default party contact mechanism for this party.

*Sort Messages By Attribute: *LineOrd
Introduced In Version 2018
Revocable NO

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.