B2B Integration 10.2 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Dictionary Folder | Summary of Elements in this Folder | wm.tn.dictionary:getContactTypes
 
wm.tn.dictionary:getContactTypes
Retrieves the contact types defined for the trading network.
Input Parameters
None.
Output Parameters
contactTypes
Object A java.lang.Hashtable that contains the contact types. The Hashtable is keyed by the String contact type descriptions, and the values are the Short contact type codes.
contactTypesByID
Object A java.lang.Hashtable that contains the contact types. The Hashtable is keyed by the Short contact type codes and the values are the String contact type descriptions.
descriptions
String List A sorted list of all contact 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 contact type description and you need its ID, use the Hashtable returned in contactTypes.
2. If you have the contact type ID and you need its description, use the Hashtable returned in contactTypesByID.
3. To present the contact types sorted in alphabetical order, use the list returned in descriptions. Then use the Hashtable in contactTypes to look up the corresponding ID for any String in the descriptions list.

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.