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
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.
Specifies how the File Exchange Server shall handle duplicate files. The two options are:
Files with a name that have previously been imported will not be imported again.
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:
The files are left in the remote path as they are.
The files are deleted from the remote path.
The files are moved to the remote archive path.
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.
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.
@*.xmlThe local or network path you want to receive the files from or sent the files to.
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”.
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.
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.
