Definition Line - Macro

The ImpEx extension allows you to define macros so that you do not have to type repeating strings into your CSV files, and you can keep your CSV files more manageable.

During import, these macros are parsed and any occurrence of the macro name is replaced by the macro value. You can call macros in headers and in value lines. You can even call macros within macro definitions. If you define two macros with the same key, the latest definition is used.

Macro definitions start with the dollar symbol ($), and they are referenced by $macroname. For example:

$catalog=catalog(id)
$catalogVersion=catalogVersion($catalog,version)
						
INSERT Product;code;$catalogVersion

Wherever the term $catalogVersion appears, it is replaced by: catalogVersion(catalog(id),version):

INSERT Product;code;catalogVersion(catalog(id),version)