Skip to Content
0
Former Member
Jun 17, 2018 at 04:25 PM

How to write two headers in an impex file which executes on a condition?

284 Views

I have a requirement in which I want my data to be processed using a header out of multiple headers based on a condition in the Impex file. Maybe, it can be done using BeanShell or impex.setCurrentHeader(String) but I don't know the current syntax to do it.

For example

If(condition evaluates to true) then INSERT_UPDATE Product;code[unique=true];.... else then INSERT_UPDATE VariantProduct;code[unique=true].........

Do let me know if it is possible.