I'm looking for a way to update the values of data fields in a merged document with a script just as you can do with the user interface.
I don't find any method like "updateDataFields ()" in the DataMerge object.
Si I try to invoke the menu action "Update Data Fields", but it fails. The script error message is: "Error 53762, the script is not active." On the contrary, the action works if I use the interface.
Can anyone help me?
Thanks in advance,
You might be looking for this one:
DataMerge.mergeRecords (outputOversetReportFile: File )
Merges records and produces an optional overset report.
outputOversetReportFile: Data Type: File
The path to the file in which to store the overset report. (Optional)
Thank you, Andreas.
In fact, DataMerge.mergeRecords creates a merged document, whereas I'm looking for a way to update the values of the data fields of a document that as already been created with DataMerge.mergeRecords. That can be done in the user interface with "Update Data Fields".