How to Download a File from Aras Innovator to a Client Machine
Copy
The purpose of the aras.downloadFile is to download a file from Aras Innovator to a client machine. This function is a Javascript function and can only be called from a client-side Method.
The function takes in up to two properties:
- fileNd – an XML Node of the File to be downloaded. It contains the filename, ID, and all pertinent properties.
preferredName – (Optional) a string to replace the file’s name during download.
let item = aras.newIOMItem(‘File’, ‘get’);
...
item = item.apply();
aras.downloadFile(item.node, ‘sample.txt’);