Run Multiple Mail Merge

Use this system function to run a full mail merge operation.

Parameters

Template ID

Input, required. The document generation template to use. Use an already-downloaded template. Set the parameter to an applicable object from the object list.

Data File ID

Input, required. The mail merge template to use. Set the parameter to an applicable object from the object list.

Document ID

Input, required. The ID to assign to the resulting document. Set the parameter to an applicable object from the object list.

Additional Notes

This system function launches an operation that merges all of the data sets in the XML file with the template to create a .pdf. The process runs asynchronously, so it will not overtax the web server. Before running a system function such as Display Document, ensure that the operation has completed. To do so, perform a table I/O on column FNDFUF1 in table F980042. If the return string is PENDING, the operation is still running. If the return string is SUCCESS, then the operation is complete.Download TemplateGet XML Data Model