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

Viewed 229

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.

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.

Related