How to add idTypes with the importData service?

We want to add idTypes to the list in the Trading networks console. We are using the importData service. It has idTypes as one of the input data. We have created a hashtable with a string as the key and an Integer as the value. Still we get a classcast exception. Why is this? How should we construct the input to the importData service so it works?

Eyvind1,

From TN Built-in services guide:

The wm.tn.admin:exportData and wm.tn.admin:importData services are intended to be used together. The
structure of the data output from wm.tn.admin:exportData service matches the structure of the data
input variable for wm.tn.admin:importData service.

wm.tn.dictionary:addIDType can be used to add profile external ID’s. If you are working with wM EDI, there is a list already available which you can select from via wM EDI homepage.