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
Address
object 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
city
element 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
,User
orVendor
objects 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
addr
forCompany
,Contact
,Customer
,CustomerProspect
,User
orVendor
objects, as well asbillingaddr
andcontactaddr
forCustomer
andCustomerProspect
. -
SOAP — List the address information required in the
fields
of theReadRequest
complex type.
-
-
When adding or modifying address information using the XML API, the address value between object property tags must be an
Address
object.