Skip to Content
0
Sep 17, 2020 at 05:34 PM

Automate duplicate values in impex

31 Views

Hello, I have an impex of this form:

INSERT_UPDATE CS;code[unique=true];deliveryMode(code);startDate[dateformat=dd-MM-yyyy];endDate[dateformat=dd-MM-yyyy];priority;exclusion(code)
;A1;standard-net;01-01-2017;01-01-2017;4;SN;
;A2;standard-net;01-01-2017;01-01-2017;4;SN;
;A3;standard-net;01-01-2017;01-01-2017;4;SN;
;A4;standard-net;01-01-2017;01-01-2017;4;SN;
;A5;standard-net;01-01-2017;01-01-2017;4;SN;
;A6;standard-net;01-01-2017;01-01-2017;4;SN;
;A7;standard-net;01-01-2017;01-01-2017;4;SN;
;A8;standard-net;01-01-2017;01-01-2017;4;SN;
;A9;standard-net;01-01-2017;01-01-2017;4;SN;
;A10;standard-net;01-01-2017;01-01-2017;4;SN;
;A11;standard-net;01-01-2017;01-01-2017;4;SN;

....
;A50;standard-net;01-01-2017;01-01-2017;4;SN;

Except for the code all the rest of the attributes are duplicated. Is there a way to somehow avoid this duplication of values (maybe writing code in beanshell?). Dynamically generating the impex in java code is not a solution.