Hi All,
I have a requirement to do XtendM3 logic when MWS435PF/MWS485PF files are generated. Custom tables are updated and through CMS006, they are related back to the original print file.
Everything was going well until multiple sequence numbers were outputted for MWS485PF with the same job number. My custom table uses the job number as its only key, although it seems now I need the sequence number as a secondary key.

Following the KB article listed KB 2253585, you have access to the below parameters.
// Get input arguments from method
String printerFile = method.getArgument(0) as String; //PRTF
long jobNumber = method.getArgument(1) as long; //BJNO
String structure = method.getArgument(2) as String; //RPLY
int variant = method.getArgument(3) as int; // XMLT
int rpbk = method.getArgument(4) as int; // XML Section
HashMap<String, Object> fieldMap = method.getArgument(5) as HashMap;
In CMS007 (for MWS485PF), I have enabled the DOC_HEADER section for XtendM3, and adding a custom section below that. Therefore, I only have visibility of elements in the DOC_HEADER section and as far as i'm aware, I can't add the sequence number to this section and pass it into XtendM3.

What are everyone's thoughts on how to get the sequence number passed into CREXTPRT?
Thanks, Callum