how do we export/import tags and all the tagged entries

Ravish Shetty
Tera Guru

hi all,

 

I am tagging few data and using them to categorize and use it for querying purposes in scripts.

I want to move these tags and the tagged entries relations to another instance. please advise how I can export and import this information

 

Ravish

6 REPLIES 6

Michael Ritchie
ServiceNow Employee

Tags are considered "data" so they aren't automatically added to update sets.  Please checkout the very popular Add to Update Set Utility on share that will allow you to selectively "push" records to update sets including data:

https://developer.servicenow.com/app.do#!/share/contents/9824957_add_to_update_set_utility?t=PRODUCT...

 

This utility adds a global Add to Update Set related link and list action that you can click to push the item to an update set.  It also has built in functionality to include other related data for specific tables such as user, groups, catalog items, etc.  Please see the Share description for more details.

Michael, I am already using a similar utility called 'force to update set' to capture this data in the update set.

I captured the tag data from the 'label' table and also the related entries from the 'label_entry' table.

but for the purpose of immediate transfer, i exported these 2 XML files and imported it in another instance but it's not working.

find_real_file.png

Ravish, gotcha.  I would recommend looking at the Add to Update Set utility as it does a bunch more than the older "force" solution and it is actively being maintained.

I was thinking you only wanted to move the tag/labels.  Moving the label_entry record further complicates things because those records have a direct pointer to records in the instance using the SysID of the record.  So unless you are also moving those related records (incidents, kb articles, etc) the pointer will not work since the SysID may be different in your target instance.

so these tags are against the catalog variable (item_option_new) table and 99% of the variables between these 2 environments are the same and so they have the same sys_id...