Get record count before Create Job

Hello Darko,

After either the Execute Data Mapping task or Create Print Content task, you can use the Metadata Attribute Number of documents in Job (GetMeta(SelectedDocumentCount[0], 11, Job)) to check the record count.

Source: Calculate Multi Pages Records

Examples

Set Job infos and Variables task

Var/Info# Value
%9 GetMeta(SelectedDocumentCount[0], 11, Job)

Run Script task (Language: JScript)

var recordCount = Watch.ExpandString("GetMeta(SelectedDocumentCount[0], 11, Job)");

OR

var metadata = new ActiveXObject("MetadataLib.MetaFile");

metadata.LoadFromFile(Watch.GetMetadataFileName());

var recordCount = metadata.Job().SelectedDocumentCount();