Electronic Reporting displaying Legal Entity Email/Phone by custom Address Purpose
You may need different email addresses to display on outgoing business documents depending on department sending them or have different "from" email addresses for email's in the ER destinations.
This can be done using a custom address purpose, in the example below I created an Address Purpose called "AP" under Organization administration > Global address book> Address and contact information purpose and gave it a purpose of contact.
Then I added a email address to legal entity using this purpose.
Then in the format add the following
Class = DirParty
Enumeration = LogisticsElectronicAddressMethodType
Table = CompanyInfo
Then add the following where you want to display the email address:
DirParty.electronicAddressLocatorsByRole(CompanyInfo.'current()',LogisticsElectronicAddressMethodType.Email,"AP").
Comments
Post a Comment