R32515-2 Message - Set ToEmail Address List
| Code | R32515-2 |
| Entity | Applications.Mail.Messages Entity |
| Name | SetToEmailAddressList |
| Attribute | ToEmailAddressList |
| Layer | Front-End |
| Events | AttributeChanged(RelatedToParty) |
| Priority | Normal |
| Modify | YES |
| Applicable Legislations | ALL // no condition needed |
| Action | partyContactMechanism = RelatedToParty.ContactMechanisms.Where(cm => cm.ContactMechanism.ContactMechanismType == ContactMechanismsRepository.ContactMechanismType.Mail && cm.IsActive) if (partyContactMechanism != null) && (ToEmailAddressList == null) set value: ToEmailAddressList = partyContactMechanism.ContactMechanism.Name |
| Description | When the Related To Party is changed and e-mail Contact Mechanism is set, if To Mail Address List is empty, it should be set to Related To Party's e-mail. |
| Message | |
| Version | Introduced: 2022 |
| Revocable | NO |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.