AX2009 - Employee email from GAB

Hi,

How to get/set employee’s email from GAB in AX 2009 (using X++)?

Regards,

arnam

…I’ve found how to get it:

EmplTable::find(…).email(…)

…how to set it?

Hi,

Have a look at Tables > EmplTable > Methods > communicationValue method for fetching the email address.

For writing this data, have you searched this forum? The whole employee import was already discussed quite a few times. Basically -

  • Email details are stored in ‘DirECommunicationAddress’
  • The table ‘DirPartyECommunicationRelationship’ acts as bridge between DirPartyTable and the above table.

Hope this helps.

OK. Thank you for the help.