Moving existing variables into a variable set

turnea
Mega Expert

Hi everyone,

By any chance, is there a way to move existing variables in a catalog item into a variable set?   I'm working on a fairly complex catalog item that currently contains hundreds of variables and we are looking to merge it with another catalog item.   This current item also has a secondary catalog item to add extra things to the request, so those new merged variables will need to reflect there.   The best way to accomplish this is to have variable sets that we can simply place in the secondary item.

Has anyone had experience in doing this?   Any information would be very helpful.

Thank you,

Amandah

1 ACCEPTED SOLUTION

As an added clean up; blank out the 'catalog item' field on the variables that were included in the variable set.   This will eliminate them from showing on the Catalog Item.   They will only show when the Variable set is included.


Variable should either be 'part of a variable set' or 'individual for a catalog item', so only one of the fields should be populated.


View solution in original post

20 REPLIES 20

Hi Venkat,



I ended up trying this method however when I went to delete the single variables that were still existing in the catalog item, it deleted everything in the variable set as well.   I'm not sure how I can utilize transferring the variables into these sets and being able to remove the single variables from the catalog item.



Would I need to export the variables and import them as a copy of some sort into the variable set then delete?   Not 100% sure what to do here, if anything.



Any insight would be appreciated.



Thank you,


Amandah


As an added clean up; blank out the 'catalog item' field on the variables that were included in the variable set.   This will eliminate them from showing on the Catalog Item.   They will only show when the Variable set is included.


Variable should either be 'part of a variable set' or 'individual for a catalog item', so only one of the fields should be populated.


That's the clarification I needed!   Thank you so much, it's working exactly as expected now.



Amandah


Hi Amandah, do you have the variables that you deleted in another environment? If you, then definitely you can try an import/export and just make sure to make the variables associated to the variable set and not to the catalog item.



Thanks,


Berny


One last recommendation, make sure to validate your UI policies and any other object that may have a reference to the sys_ids of your variables. You will notice that the reference is lost when you see on the conditions of the UI policies the sys_id of the expected variable and not the actual variable name as it often is displayed.



Thanks,


Berny