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.create:newAddress
 
wm.tn.profile.create:newAddress
Creates an empty Address component for a profile.
Input Parameters
None.
Output Parameters
address
Document An uninitialized address; that is, all fields in the address are null. For the structure of address, see wm.tn.rec:Address. For Java developers, this is an instance of a com.wm.app.tn.profile.Address.
Usage Notes
*Use this service to create an empty address. You can use the address in the profile as either a corporate address or the address of a contact.
*After using this service to create an empty Address component, map or hardcode values into it before saving the address to the Trading Networks database.
*If you are adding the address to a new profile, leave the internal ID fields (i.e., AddressID, PartnerID, and ContactID) empty. Trading Networks generates these internal IDs for you when you save the profile to the Trading Networks database.
*If you are adding the address to an existing profile, you must specify an internal ID field to associate the new address with either the corporation or the contact within the existing profile. Specify PartnerID if you are adding the contact to the corporation. Specify ContactID if you are adding the address to an existing contact in the profile. Leave the internal ID, AddressID, empty; Trading Networks generates this internal ID for you.