Can i export and import xml regarding variables on catalog item?

hasthipooji
Tera Contributor
I have one catalog item with variables, and I want to create another catalog item with a different name but the same variables. Instead of adding them manually, I tried exporting the variables of CI as XML and importing it into another CI, but it didn’t work. What could be the reason, and is importing/exporting possible?
1 REPLY 1

KanteS
Giga Guru

Hi @hasthipooji ,

 

The import/export is not a supported or reliable way to clone variables between catalog items.because variables are linked to the original catalog item through sys_ids.So When you import the XML into another catalog item, the variables either don’t appear or still point to the original item.

 

Recommended solutions:

  • Use Variable Sets – move the common variables into a variable set and attach it to both catalog items (best practice).

  • Copy the catalog item if the new item is mostly the same and then rename/modify it.

If this resolved your issue, please mark this response as the correct answer and give it a like