B2B Integration 10.4 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Profile Folder | Summary of Elements in this Folder | wm.tn.profile:addAddresses
 
wm.tn.profile:addAddresses
Adds one or more new addresses to a partner's profile.
The service validates the addresses before saving them. If errors are found, the service does not save the addresses and returns the errors.
Input Parameters
partnerID
String The internal identifier for the trading partner.
addresses
Object List The addresses to add to the partner's (specified by partnerID) profile. The variable addresses must be an array of com.wm.app.tn.profile.Address instances.
Output Parameters
ids
String List The unique identifier that Trading Networks created for each address that the service added to the partner's profile.
errors
String List (optional) A string array that contains the errors found in the addresses, if any.
Usage Notes
*The wm.tn.profile:addAddresses service can either add the address as the partner's corporate address or as the address for one of the partner's contacts. To associate the address with the partner's organization, leave the ContactID field of the com.wm.app.tn.profile.Address instance empty. To associate the address with a contact, set the ContactID field of the Address object to the internal identifier of the contact.
*A partner's organization can have multiple addresses. A contact can have either no addresses or one address.

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.
Innovation Release