Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Profile Folder | Summary of Elements in this Folder | wm.tn.profile:getExternalIDs
 
wm.tn.profile:getExternalIDs
Retrieves all external IDs of the specified type for a trading partner.
Input Parameters
partnerID
String The internal identifier for a trading partner for which to retrieve external IDs.
idTypeDesc
String The type of external IDs to retrieve. The value must match one of the values in the Description column of the IDType table in the Trading Networks database (for example, DUNS; DUNS+4; EULER, User Defined 3). Supply a value for either idTypeCode or idTypeDesc.
idTypeCode
String The type of external IDs to retrieve. The value must match one of the values in the Type column of the IDType table in the Trading Networks database (for example, 1, 2, 3). Supply a value for either idTypeCode or idTypeDesc.
Output Parameters
ids
String List The requested external IDs.
Usage Notes
*When exchanging documents, partners typically identify themselves within a document using some well-known ID scheme, such as a D-U-N-S number. If you know a partner's internal ID, use this service to get the external ID you need.
*To retrieve the ID types from the IDType table in the Trading Networks database, use the wm.tn.dictionary:getIDTypes service. The wm.tn.dictionary:getIDTypes service returns a Hashtable of all types of IDs known to Trading Networks. The value of idType must be one of the keys from this Hashtable. For more information, see wm.tn.dictionary:getIDTypes.
*Supply a value for either idTypeCode or idTypeDesc. If you supply values for both of these parameters, the service uses idTypeCode and ignores idTypeDesc.