Use this XML call to retrieve the structure of one or more list's custom fields. This includes the data types, whether the fields are required, default values and any of the custom field structure's settings.
XML Request Example:
<?xml version="1.0" encoding="UTF-8"?> <xmlrequest> <username>JohnDoe</username> <usertoken>abc123abc123abc123abc123</usertoken> <requesttype>Lists</requesttype> <requestmethod>GetCustomFields</requestmethod> <details> <list>1</list> <!-- required -- > <list>{list_id}</list> <!-- Can optionally select more than one list --> </details> </xmlrequest>
<xmlrequest> element
Field Name | Description |
username | Username used to login to Pinpointe |
usertoken | Unique token assigned to Pinpointe account |
requesttype | Lists |
requestmethod | GetCustomFields |
Please note: ALL OPTIONAL tags that are not used should be deleted from submitted call. For example, if only one <list> tag is specified, any unused <list> tags should be deleted.
<details> element
Field Name | Description |
list (Required) | ID number of the list from which to retrieve custom field data |
list (optional) | ID of optional additional lists from which to retrieve custom field data |
Successful Response:
<response> element
Field Name | Description |
status | Will return SUCCESS if one or more custom fields are found |
<data>
<item> element
Field Name | Description |
fieldid | ID number of custom field |
name | Name of custom field |
fieldtype | Data type of field |
defaultvalue | The default value will be included here if one is set |
required | Returns 1 if this field is required, 0 if not |
fieldsettings | Serialized version of the custom field's settings |
Please note: If multiple list ids are specified, the resultant list of returned custom fields will not be identified as to which list they belong.
Unsuccessful Response:
<response> element
Field Name | Description |
status | Will return FAILED if unsuccessful |
errormessage | Text explaining why request failed |