Config / Data Exchange / ANVEDI Filesystem

ANVEDI Filesystem

This communication code unit allows to read and write files on the computer / network where the File Exchange Service is running.

To use this service you need Anvaigo EDI Connect version 5.3.0.4 and the File Exchange Service must be reachable.

General

Server

Select or create a new File Exchange Service (FES) 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.

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.

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.

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.

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.
Remote path

The local or network path you want to receive the files from or sent the files to.

Remote archive path

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

Scripting

In order to make the scripts being executed, you need to switch the option “DeactivateScriptExecution” to “false” in the FES configuration file “appsettings.json”.

Receive Script Filename

This field allows you to execute anything executable during the receiving of files via the File Exchange Service. It can be a script or an exe file and you should provide the path to it, e.g. C:\temp\script.ps1. The value from the parameter “Remote path” will be passed as a parameter.

Send Script Filename

This field allows you to execute anything executable during the sending of files via the File Exchange Service. It can be a script or an exe file and you should provide the path to it, e.g. C:\temp\script.ps1. The values from the parameter “Remote path” and the file name will be passed as a parameters.