Tutorial: Application.setFileDownloadLocation

Application.setFileDownloadLocation

Sets file auto download location.

Example

const downloadLocation = 'C:\\dev\\temp';
const app = await fin.Application.getCurrent();
try {
    await app.setFileDownloadLocation(downloadLocation);
    console.log('File download location is set');
} catch(err) {
    console.error(err)
}