Posted By

NSahu on 04/11/14


Tagged

file api


Versions (?)

download a File from File Cabinet


 / Published in: JavaScript
 

How to download file from file cabinet

  1. function userEventBeforeLoad(type, form, request){
  2.  
  3.  
  4.  
  5. // Load file - can be also used nlapiLoadFile('fileId') syntax
  6.  
  7. var file = nlapiLoadFile('Images/Desert.jpg');
  8.  
  9.  
  10.  
  11. var url = "https://system.netsuite.com" + file.getURL();
  12.  
  13.  
  14. nlapiSetFieldValue('hyperlinkFieldId', url);
  15.  
  16.  
  17.  
  18. }

Report this snippet  

You need to login to post a comment.