How to export the variables of specific RITMs in XML?

Suggy
Giga Sage

We have around 3000 RITMs but I need to move only 500 RITMs from one SN to another SN instance (including the variables and its values for 500 RITMs)

 

I used a filter to export those 500 RITM via XML and imported in target instance but the variables section did not show up on the RITM, and I understand the reason - that the variable data sits in different table which is sc_item_option.

 

Hence, I went to sc_item_option table to export the XMLs but problem is that, I couldnt find a way to use the filter on this table.. something like 'RITM is one of <1,2,3..500>' on this table.

 

Anyone knows how to export the variables and its values from sc_item_option table for those specific 500 RITMs?

1 ACCEPTED SOLUTION

Hi @Suggy ,

 

yes run the script in the source instance 

you will get the sysids of the those variable and value records

 

goto those tables and filter the records using sysid is one of {out put sysids}

 

and then export them as xmls

 

ChaitanyaILCR_0-1752758471027.png

 

ChaitanyaILCR_2-1752758695991.png

 

do the same with sc_item_option_mtom

 

ChaitanyaILCR_3-1752758726420.png

 

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

View solution in original post

17 REPLIES 17

Chaitanya ILCR
Mega Patron

Hi @Suggy ,

move sc_req_item, sc_item_option and sc_item_option_mtom

records

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

J Siva
Tera Sage

Hi @Suggy 
Use "sc_item_option_mtom" many-to-many table.
Regards,
Siva

Shraddha Kadam
Mega Sage

Hello @Suggy ,

 

You need to import the XML from below tables

sc_item_option_mtom

sc_item_option

If my response was helpful, please mark it as correct and helpful.
Thank you.

GlideFather
Tera Patron

Hi @Suggy 

 

You need to export Variables and the corresponding chocies:

  • Variables
    • item_option_new
    • example: "Disk"
  • Variable sets
    • item_option_new_set
  • Variable's and Variable Set's choices
    • question_choice
    • example: ", 128 GB, 256 GB, 512 GB, etc"
    • it covers both select box and multiple choice
  •  

And I hope I haven't forgotten anything.

 

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */