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:addContacts
 
wm.tn.profile:addContacts
Adds one or more new contacts to a partner's profile. The service validates the contacts before saving them. If errors are found, the service does not save the contacts and returns the errors.
Input Parameters
partnerID
String The internal identifier for the trading partner.
contacts
Object List The contacts to add to the partner's (specified by partnerID) profile. The variable contacts must be an array of com.wm.app.tn.profile.Contact instances.
Output Parameters
ids
String List The unique identifier that Trading Networks created for each contact that the service added to the partner's profile.
errors
String List (optional) A string array that contains the errors found in the contacts, if any.