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
Syntaxpublic static Party DetermineRelatedToParty(
ObjectTransaction transaction,
string mailAddresses
)
Public Shared Function DetermineRelatedToParty (
transaction As ObjectTransaction,
mailAddresses As String
) As Party
public:
static Party^ DetermineRelatedToParty(
ObjectTransaction^ transaction,
String^ mailAddresses
)
static member DetermineRelatedToParty :
transaction : ObjectTransaction *
mailAddresses : string -> Party
Parameters
- transaction
- Type: Aloe.SystemFrameworks.DomainObjectTransaction
The transaction. - mailAddresses
- Type: SystemString
The mail addresses, which are related with the receivers.
Return Value
Type:
PartyParty_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