Skip to Content
1
Jan 26, 2017 at 01:32 PM

Dynamically modify the header of an impex file

321 Views

Hi,

is there a way to modify the header of an impex statement based on the values that are imported?

Example:

Given:

 INSERT_UPDATE GenericVariantProduct; code[unique=true];variant
 ;1;size
 ;2;color

Expected:

 INSERT_UPDATE SizeVariantProduct; code[unique=true];variant
 ;1;size

 INSERT_UPDATE ColorVariantProduct; code[unique=true];variant
 ;2;color

So, the values coresponding to the variant header are parsed and following some custom logic the type where the values should be inserted gets modified (GenericVariantProduct -> SizeVariantProduct/ColorVariantProduct)

Thanks, Alex