listUserFields

This method returns the list of fields in the constituent record that can be viewed or changed by the caller. If include_choices is true, then it will return choices with each field when they are available. If sort_order is "group", then it will return field sorted by group information.

Client Servlet Server Servlet HTTP Methods Supported Requires Authentication
CRConsAPI SRConsAPI GET, POST Server.

Client API Syntax

https://secure2.convio.net/organization/site/CRConsAPI?method=listUserFields &api_key=value &v=value [ &center_id=value ] [ &error_redirect=value ] [ &redirect=value ] [ &response_format=xml | json ] [ &sign_redirects=value ] [ &source=value ] [ &sub_source=value ] [ &success_redirect=value ] [ &suppress_response_codes=value ] [ &access=view | update ] [ &include_choices=value ] [ &sort_order=field | group ]

Server API Syntax

https://secure2.convio.net/organization/site/SRConsAPI?method=listUserFields & api_key =value & login_name =value & login_password =value & v =value [ & center_id =value ] [ & response_format =xml |json ] [ & source =value ] [ & sub_source =value ] [ & suppress_response_codes =value ] [ & access =view |update ] [ & include_choices =value ] [ & sort_order =field |group ]

Usage Notes

This method provides detailed information about each of the fields available to the calling user. The elements within each field element of the response document include:

name
This is the name of the HTTP parameter to use to set the field in a request to create or update a constituent. Dots in the name reflect the structure of nested elements in the response to a request to get a constituent's record.
label
This is what the Luminate Online system uses as a field label when presenting the field in its UI.
valueType
Indicates the type of data in the field. See the list below for possible values.
maxChars
For "TEXT" type fields, this indicates the maximum number of characters that can be stored.

The possible values for the valueType element are:

BOOLEAN
These fields have a value of "true" or "false".
DATE
These fields have a date and time value formatted as defined by the XML Schema specification, which is derived from the ISO 8601 specification. This format has a date part, a time part, and a time zone part. If the time zone part is omitted, then the time zone configured for the site is used. If the time part is omitted, then the time is set to the beginning of the day (00:00:00) in the time zone used.
ENUMERATION
These fields have a finite set of possible values which are specified in the XML Schema document.
MONEY
These fields have monetary values that are formatted as currency using the site's configured locale information.
NUMBER
These fields have integer values with no formatting (no punctuation such as commas or points).
TEXT
These fields have text strings.

Client API Parameters

Common Client Parameters

See topic Common Parameters.

access

Optional. Specifies the type of constituent record access for which to list the available fields. If the value is "view" then the response includes fields that the caller can view. If the value is "update" then the response includes fields that the caller can change.

Type xsd:string.

Default is view.

Options are:
  • view
  • update
include_choices

Optional. The flag to indicate whether or not each textfield contains choice information.

Type xsd:boolean.

Default is false.

sort_order

Optional. Specifies the order of the records. If the value is "field", then response will be sorted alphabetically in field name. If the value is "group", then response will be sorted by group.

Type xsd:string.

Default is field.

Options are:
  • field
  • group

Server API Parameters

Common Server Parameters

See topic Common Parameters.

access

Optional. Specifies the type of constituent record access for which to list the available fields. If the value is "view" then the response includes fields that the caller can view. If the value is "update" then the response includes fields that the caller can change.

Type xsd:string.

Default is view.

Options are:
  • view
  • update
include_choices

Optional. The flag to indicate whether or not each textfield contains choice information.

Type xsd:boolean.

Default is false.

sort_order

Optional. Specifies the order of the records. If the value is "field", then response will be sorted alphabetically in field name. If the value is "group", then response will be sorted by group.

Type xsd:string.

Default is field.

Options are:
  • field
  • group

Response

See topic HTTP Status Codes.

XML response
<?xml version="1.0" encoding="UTF-8"?>
<listConsFieldsResponse xsi:schemaLocation="http://convio.com/crm/v1.0 http://service.convio.net/xmlschema/crm.public.v1.xsd" xmlns="http://convio.com/crm/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <field>
    <label>Text Field Label</label>
    <name>text_field</name>
    <required>true</required>
    <maxChars>255</maxChars>
    <choices>
      <choice>Choice Label One</choice>
      <choice>Choice Label Two</choice>
    </choices>
    <group>Group Label</group>
    <groupOrder>3</groupOrder>
    <subGroup>Sub Group Label</subGroup>
    <subGroupOrder>1</subGroupOrder>
    <valueType>TEXT</valueType>
    <isSensitive>false</isSensitive>
    <requiredForUser>true</requiredForUser>
    <isUserModifiable>true</isUserModifiable>
  </field>
  <field>
    <label>Number Field Label</label>
    <name>number_field</name>
    <required>false</required>
    <group>Group Label</group>
    <subGroup>Sub Group Label</subGroup>
    <groupOrder>2</groupOrder>
    <valueType>NUMBER</valueType>
    <isSensitive>false</isSensitive>
    <requiredForUser>false</requiredForUser>
    <isUserModifiable>true</isUserModifiable>
  </field>
  <field>
    <label>Boolean Field Label</label>
    <name>boolean_field</name>
    <required>false</required>
    <valueType>BOOLEAN</valueType>
    <isSensitive>false</isSensitive>
    <requiredForUser>false</requiredForUser>
    <isUserModifiable>true</isUserModifiable>
  </field>
  <field>
    <label>Enum Field Label</label>
    <name>enum_field</name>
    <required>false</required>
    <valueType>ENUMERATION</valueType>
    <isSensitive>false</isSensitive>
    <requiredForUser>false</requiredForUser>
    <isUserModifiable>false</isUserModifiable>
  </field>
  <field>
    <label>Money Field Label</label>
    <name>money_field</name>
    <required>false</required>
    <valueType>MONEY</valueType>
    <isSensitive>false</isSensitive>
    <requiredForUser>false</requiredForUser>
    <isUserModifiable>false</isUserModifiable>
  </field>
  <field>
    <label>Date Field Label</label>
    <name>date_field</name>
    <required>false</required>
    <valueType>DATE</valueType>
    <isSensitive>false</isSensitive>
    <requiredForUser>false</requiredForUser>
    <isUserModifiable>true</isUserModifiable>
  </field>
</listConsFieldsResponse>

        
JSON response
{"listConsFieldsResponse":{"field":[{"isUserModifiable":"true","maxChars":"255","choices":{"choice":["Choice Label One","Choice Label Two"]},"label":"Text Field Label","requiredForUser":"true","name":"text_field","groupOrder":"3","subGroupOrder":"1","subGroup":"Sub Group Label","valueType":"TEXT","isSensitive":"false","required":"true","group":"Group Label"},{"isUserModifiable":"true","requiredForUser":"false","groupOrder":"2","name":"number_field","valueType":"NUMBER","subGroup":"Sub Group Label","label":"Number Field Label","isSensitive":"false","group":"Group Label","required":"false"},{"isUserModifiable":"true","requiredForUser":"false","name":"boolean_field","valueType":"BOOLEAN","label":"Boolean Field Label","isSensitive":"false","required":"false"},{"isUserModifiable":"false","requiredForUser":"false","name":"enum_field","valueType":"ENUMERATION","label":"Enum Field Label","isSensitive":"false","required":"false"},{"isUserModifiable":"false","requiredForUser":"false","name":"money_field","valueType":"MONEY","label":"Money Field Label","isSensitive":"false","required":"false"},{"isUserModifiable":"true","requiredForUser":"false","name":"date_field","valueType":"DATE","label":"Date Field Label","isSensitive":"false","required":"false"}]}}

        

Leave a Comment

Nickname
Comment
Enter this word: