/ Published in: JavaScript
How to download file from file cabinet
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function userEventBeforeLoad(type, form, request){ // Load file - can be also used nlapiLoadFile('fileId') syntax var file = nlapiLoadFile('Images/Desert.jpg'); var url = "https://system.netsuite.com" + file.getURL(); nlapiSetFieldValue('hyperlinkFieldId', url); }