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:getInternalID
 
wm.tn.profile:getInternalID
Retrieves the internal identifier for a trading partner.
Input Parameters
id
String The external ID for a partner.
idType
String Deprecated. Use idTypeDesc instead.
idTypeDesc
String The type of the external ID in the id parameter. 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, User Defined 2, User Defined 1, webMethods Internal, Mutually defined). Supply a value for either idTypeDesc or idTypeCode.
idTypeCode
String The type of the external ID in the id parameter. 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
partnerID
String The internal identifier for a trading.
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 have a partner's external ID from a business document, use this service to get the internal identifier; that is, the identifier that Trading Networks generated for the partner.
*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 idTypeDesc or idTypeCode. If you supply values for both of these parameters, the service uses idTypeCode and ignores idTypeDesc.