Steve Reeder
Steve Reeder

Reputation: 1022

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.

Upvotes: 3

Views: 382

Answers (1)

Avi
Avi

Reputation: 2069

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.

Upvotes: 2

Related Questions