Return to Snippet

Revision: 66280
at April 11, 2014 13:05 by NSahu


Initial Code
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);



}

Initial URL

                                

Initial Description
How to download file from file cabinet

Initial Title
download a File from File Cabinet

Initial Tags
file, api

Initial Language
JavaScript