Address Fields
Address properties are defined as complex type properties in the XSD and the XML API handles addresses as compound fields using the Address element.
-
The XML API also uses the
Addressobject as a substructure to pass address and other contact information when reading, adding or updating any type of records including such information. -
The following example shows the XML structure to modify the
cityelement of a contact's address<Contact> <addr> <Address> <city>Boston</city> </Address> </addr> </Contact>
The SOAP API handles the different elements forming an address as individual component fields, which are defined as simple type properties in the WSDL.
Usage Guidelines
Review the following guidelines:
-
When reading
Company,Contact,Customer,CustomerProspect,UserorVendorobjects you can list the specific address information to be returned.-
XML — List the address information required between the address object property tags as per the following example.
<_Return> <addr> <city/> </addr> <contactaddr> <email/> <mobile/> </contactaddr> <name/> <id/> </_Return>Address object properties include
addrforCompany,Contact,Customer,CustomerProspect,UserorVendorobjects, as well asbillingaddrandcontactaddrforCustomerandCustomerProspect. -
SOAP — List the address information required in the
fieldsof theReadRequestcomplex type.
-
-
When adding or modifying address information using the XML API, the address value between object property tags must be an
Addressobject.