Change the name of a "file-upload"-record

Posted by smartsysISV on 31-Jan-2014 17:32

When I (in a trigger) create a document form a template and save this to a "File-upload"-field the name of this field is copied from the template.

Is it possible to change the name of this document (without changing the document) or can we set some variables in the name of the template?

All Replies

Posted by cgontla1 on 03-Feb-2014 11:31

Hi,

New server-side API (will be available in 2.2) runTemplate() can be used to generate template’s output.

Then, you can set the file name using setBinaryFieldValue() server side API for the document which is in 'File Upload' field.

This thread is closed