Trading Networks 10.7 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Profile Folder | Summary of Elements in this Folder | wm.tn.profile:addProfile
 
wm.tn.profile:addProfile
Adds a new partner profile to the trading network. The service validates the profile and saves it with an Inactive status.
Input Parameters
profile
Object The profile to add to the trading network. The variable profile must be an instance of com.wm.app.tn.profile.Profile.
security
Document (optional) Leave null. This field is for internal use only and using this field can result in database errors.
Output Parameters
partnerID
String If the operation was successful, the internal ID created for this partner.
username
String (optional) If Trading Networks created an Integration Server user account, this is the user name for the user account.
password
String (optional) If Trading Networks created an Integration Server user account, this is the password of the user account.
errors
String List (optional) A string array that contains the errors found in the profile, if any.
Usage Notes
This service saves the profile regardless of whether errors are returned in errors.