You need to sign in to do that
Don't have an account?
Mapping field types to XML tags
Whening defining custom fields in sfdc, you can choose from the following types;
Currency, Date, Email, Number, Picklist, Percent, Phone, Text, Text Area and URL.
Can anyone tell me what XML tags wrap these values across the API? I apologize if this is a lame question - I couldn't seem to locate the answer in the docs.
The Date type maps to the tag <dateTime.iso8601>, obviously. And the Text, Text Area and Picklist map to string, which does not require an inner tag (i.e., <value></value> will suffice). What about the others? Are Phone, URL and Email also strings, and thus require no inner tag? What about Currency and Number?
Thanks Duke
Hi Duke,
The xml for a currency value that is returned from the SOAP api looks like this:
<amount xsi:type="xsd:double" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">40000.0</amount>
For xml-rpc, then, you would type it as double. The goes for a number field.
Thanks! Are you saying that all the other types (except date) map to strings?
Duke