Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NetSuite SS2.0 - Create a File with "addtimestamptourl" checked

Looking here for a way to set the GENERATE URL TIME STAMP field (addtimestamptourl) to checked using SS2.0 as part of rendering a PDF.

Currently I have:

var fPDF = renderer.renderAsPdf();
fPDF.name = fName;
fPDF.addtimestamptourl = true;
fPDF.folder = fFolder;
var fileId = fPDF.save();

I have also tried

fPDF.addtimestamptourl = 'T';

With no success so far, the box remains unchecked on the file record.

like image 224
Steve Reeder Avatar asked Dec 07 '25 03:12

Steve Reeder


1 Answers

AFAIK, you cannot set addtimestamptourl property to true using SuiteScript.

Also, renderer.renderAsPdf() returns file.File object and file object does not have property to set addtimestamptourl as per NetSuite help docs for files module. As of now, NetSuite does not seems to allow setting/updating property of file in file cabinet.

like image 85
Avi Avatar answered Dec 10 '25 10:12

Avi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!