Click or drag to resize

MessageDetermineRelatedToParty Method

Determines if passed mail(s) are related to Party_Type = Company.

Namespace:  Aloe.EnterpriseOne.Model.Applications.Mail
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public static Party DetermineRelatedToParty(
	ObjectTransaction transaction,
	string mailAddresses
)

Parameters

transaction
Type: Aloe.SystemFrameworks.DomainObjectTransaction
The transaction.
mailAddresses
Type: SystemString
The mail addresses, which are related with the receivers.

Return Value

Type: Party
Party_Type Company or current mail
Remarks
Loops through all received or sending mail addresses(depends from the situation) and find if they are Party_Type = Company or if their parent is from this type and so on till Company type is found or NULL. If Company type is not found - current mail party should be returned.
See Also