Example:
Sample Script that Loads the File and URL without knowing the Internal ID.
var res = nlapiSearchGlobal('file:ford_fusion.jpg');
if(res != null && res.length == 1)
{
var fileId = res[0].getId();
var myFile = nlapiLoadFile(fileId);
var fileURL = myFile.getURL();
}
No comments:
Post a Comment