Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Dictionary Folder | Summary of Elements in this Folder | wm.tn.dictionary:getIDTypes
 
wm.tn.dictionary:getIDTypes
Retrieves all the external ID types defined for the trading network.
Input Parameters
None.
Output Parameters
idTypes
Object A java.lang.Hashtable that contains the external ID types. The Hashtable is keyed by the string external ID type descriptions, and the values are the short external ID type codes.
idTypesByID
Object A java.lang.Hashtable that contains the external ID types. The Hashtable is keyed by the short external ID types codes and the values are the string external ID types descriptions.
descriptions
String List A sorted list of all external ID type descriptions, returned as a string[]. The list is sorted in ascending alphabetical sequence.
Usage Notes
The three output variables contain the same data presented three different ways.
1. If you have the external ID type description and you need its ID, use the Hashtable returned in idTypes.
2. If you have the external ID type ID and you need its description, use the Hashtable returned in idTypesByID.
3. To present the external ID types sorted in alphabetical order, use the String List returned in descriptions. Use the Hashtable in idTypes to look up the corresponding ID for any String in the descriptions list.