Datamatrix Barcode across Commingled jobs

I’m about to start work on a production job that will require commingling. We have a single page Check, and a variable page Remittance Advice document. I have worked out a commingling Workflow Process that seems to do everything intended.

However, there is a requirement to add a folder/inserter datamatrix barcode to the final document. I’m a bit puzzled how to work that out. I know how to build the barcode using Add Additional Content with an Output Preset, but I’m wondering how to do this for a commingled job.

Seems like I’d have to do the commingling to produce a PDF, and then use that PDF as the data source for a third template and do the barcoding against it. Is that correct? Or is there a way to do this without creating a map/template and output preset for the commingled output?

Wow, looks like I can just code this in the Output Preset as usual, as the metadata for the commingled set seems correct (Document Number, Page Number, Page Count).

Sometimes it really is “that easy”.