Config / Data Exchange / ANVEDI Dynamics SMTP

ANVEDI Dynamics SMTP

Requires Anveo EDI Connect version 5.0.0.12 and Microsoft Dynamics 2013R2 or above.

This codeunit allows you to send EDI messages as e-mails using the Dynamics build-in SMTP functionality. You have to configure the SMTP setup of Dynamics first.

Configuration

The basic configuration like the server is done in the Dynamics internal SMTP setup. In the communication channel you can configure the sender name and sender address (your SMTP server must support multiple identities in case you want to use another sender than the one belonging to the smtp account). You can set a default recipient, which will be used in case the receiving partner has no receiver identification set.

SMTP settings in Dynamics Business Central

Fields

Communication Channel Code

This field is part of the primary key. This field is filled automatically.

Description

A description of the server / settings.

Filename Template

A template string to build the file name for outgoing files. You can use any constant text that is valid inside file names. We support several global variables that can be used inside the filename. Because the module does not know the content of the file and the used buffer structures you cannot directly access data from the file.

The following variables are available:

{Entry No.}

The entry number of the transmission. Can be used to generate a unique filename.

{Description}

The description of the transmission.

{Sender Party}

Deprecated. Alias for {Sender Partner}.

{Sender Partner}

The sender partner code.

{Sender Identification}

The sender partner identification.

{Receiver Party}

Deprecated. Alias for {Receiver Partner}.

{Receiver Partner}

The receiver partner code.

{Receiver Identification}

The receiver partner identification.

{Project}

The project of the mapping that has generated the data.

{Format}

The format of the mapping that has generated the data.

{Code}

The code of the mapping that has generated the data.

{CCYY}

The year with century information, e.g. 2019.

{YY}

The year, e.g. 19.

{MM}

The month as two digits.

{DD}

The day as two digits.

{WW}

The calendar week, represented as two digits.

{QQ}

The quarter, represented as two digits.

{HH}

The hour of the transmission creation.

{mm}

The minutes of the transmission creation.

{ss}

The seconds of the transmission creation.

It is possible to create custom variables via the callback functionality of the module, if you need, for example, to include a document number in the filename.

Sender Address

The e-amil of the sender. Depending on the SMTP server this has to belong to the SMTP account in the Dynamics SMTP Setup.

Sender Name

The name of the sender.

Default Recipient

The recipient if the receiver identification is empty.

E-Mail Subject

The subject, you can use the same placeholders as for the filename template.

E-Mail Body

When data is sent as an attachment you can define a static text that is sent as the body of the message. We do not support variables inside the text part.

File as Attachment

Whether to sent the data as body or as an attachment.