Config / Data Exchange / ANVEDI SFTP

ANVEDI SFTP

This communication codeunit allows to read mails using the SFTP protocol via the File Exchange Service.

To use this service, you need Anvaigo EDI Connect version 5.3.0.7, and the File Exchange Service must be properly configured and accessible.

Configuration

To configure the communication channel, find it in the EDI Communication Channel List and click on “Configure”. If you’ve just created the channel you might need to refresh the page first.

General

Server

Select or create a new File Exchange Service instance. You have to configure the URL (can be copied from the configuration and is shown on startup if you start the service directly). The default value is http://localhost:7098 and you have to set the API Key corresponding to the configuration file. You can use the server for multiple communication partners.

Remote Path

The folder on the FTP server where you want to receive the files from or sent the files to.

Receiving

Duplicate handling

Specifies how the File Exchange Server shall handle duplicate files. The two options are:

Ignore Duplicates

Files with a name that have previously been imported will not be imported again.

Receive Duplicates

Files with a name that have previously been imported will be imported again.

File mask

On incoming communication channels you can filter the names of the files that should be processed. This is a Dynamics filter string and case-sensitive. To filter without checking the case, you have to add the “@” sign in front of the filter.

@*.xml
Example: Receive all files ending with .xml. Do not filter case-sensitive and also accept .XML etc.

Specifies what to do with the files after the import to Dynamics. The options are:

Do nothing

The files are left in the remote path as they are.

Delete

The files are deleted from the remote path.

Archive

The files are moved to the remote archive path.

Remote archive path

The local or network path where the archived files should be written to.

Sending

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.

You can use placeholders in this field.

Server

Remote Host

Specifies the address of the SFTP server.

Remote port

Specifies the port of the SFTP server.

Specifies the authentication method for the SFTP Server. The options are:

Anonymous

Use anonymous authentication.

Password

Use username and password for authentication.

Private Key

Use a private key for authentication.

Username

Specifies the username for the login on the SFTP server.

Password

Specifies the password for the login on the SFTP server.

SFTP Private Key

Upload the private key for the SFTP server authentication here.

Specifies which SSL library to use. The options are:

Default

A managed library (Ssh.NET) is used. This is the default option.

WinScp

If compatibility issues arise with the default option, WinSCP can be used as an alternative, calling the unmanaged WinSCP executable from the FES directory.