GET associations({associationId})/representatives({representativeId})/customfields

Method to get a representative's custom fields

Request Information

Parameters

NameDescriptionAdditional information
associationId
Association of interest

Define this parameter in the request URI.

representativeId
Representative to get custom fields for

Define this parameter in the request URI.

Response Information

Representative custom fields

Response body formats

application/json, text/json

Sample:
[
  {
    "RepresentativeId": 1,
    "Value": "sample string 2",
    "Name": "sample string 3",
    "CustomFieldId": 4,
    "DataType": "sample string 5",
    "SelectItems": [
      {
        "Id": 1,
        "Value": "sample string 2",
        "Idx": 1,
        "Deleted": true,
        "Quantity": 3
      },
      {
        "Id": 1,
        "Value": "sample string 2",
        "Idx": 1,
        "Deleted": true,
        "Quantity": 3
      },
      {
        "Id": 1,
        "Value": "sample string 2",
        "Idx": 1,
        "Deleted": true,
        "Quantity": 3
      }
    ],
    "DataSize": 1,
    "Deleted": true
  },
  {
    "RepresentativeId": 1,
    "Value": "sample string 2",
    "Name": "sample string 3",
    "CustomFieldId": 4,
    "DataType": "sample string 5",
    "SelectItems": [
      {
        "Id": 1,
        "Value": "sample string 2",
        "Idx": 1,
        "Deleted": true,
        "Quantity": 3
      },
      {
        "Id": 1,
        "Value": "sample string 2",
        "Idx": 1,
        "Deleted": true,
        "Quantity": 3
      },
      {
        "Id": 1,
        "Value": "sample string 2",
        "Idx": 1,
        "Deleted": true,
        "Quantity": 3
      }
    ],
    "DataSize": 1,
    "Deleted": true
  },
  {
    "RepresentativeId": 1,
    "Value": "sample string 2",
    "Name": "sample string 3",
    "CustomFieldId": 4,
    "DataType": "sample string 5",
    "SelectItems": [
      {
        "Id": 1,
        "Value": "sample string 2",
        "Idx": 1,
        "Deleted": true,
        "Quantity": 3
      },
      {
        "Id": 1,
        "Value": "sample string 2",
        "Idx": 1,
        "Deleted": true,
        "Quantity": 3
      },
      {
        "Id": 1,
        "Value": "sample string 2",
        "Idx": 1,
        "Deleted": true,
        "Quantity": 3
      }
    ],
    "DataSize": 1,
    "Deleted": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfRepresentativeCustomFieldResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MicroNet.WebAPI.Classes.Resources">
  <RepresentativeCustomFieldResource>
    <CustomFieldId>4</CustomFieldId>
    <DataSize>1</DataSize>
    <DataType>sample string 5</DataType>
    <Deleted>true</Deleted>
    <Name>sample string 3</Name>
    <RepresentativeId>1</RepresentativeId>
    <SelectItems>
      <CustomFieldSelectItemResource>
        <Deleted>true</Deleted>
        <Id>1</Id>
        <Idx>1</Idx>
        <Quantity>3</Quantity>
        <Value>sample string 2</Value>
      </CustomFieldSelectItemResource>
      <CustomFieldSelectItemResource>
        <Deleted>true</Deleted>
        <Id>1</Id>
        <Idx>1</Idx>
        <Quantity>3</Quantity>
        <Value>sample string 2</Value>
      </CustomFieldSelectItemResource>
      <CustomFieldSelectItemResource>
        <Deleted>true</Deleted>
        <Id>1</Id>
        <Idx>1</Idx>
        <Quantity>3</Quantity>
        <Value>sample string 2</Value>
      </CustomFieldSelectItemResource>
    </SelectItems>
    <Value>sample string 2</Value>
  </RepresentativeCustomFieldResource>
  <RepresentativeCustomFieldResource>
    <CustomFieldId>4</CustomFieldId>
    <DataSize>1</DataSize>
    <DataType>sample string 5</DataType>
    <Deleted>true</Deleted>
    <Name>sample string 3</Name>
    <RepresentativeId>1</RepresentativeId>
    <SelectItems>
      <CustomFieldSelectItemResource>
        <Deleted>true</Deleted>
        <Id>1</Id>
        <Idx>1</Idx>
        <Quantity>3</Quantity>
        <Value>sample string 2</Value>
      </CustomFieldSelectItemResource>
      <CustomFieldSelectItemResource>
        <Deleted>true</Deleted>
        <Id>1</Id>
        <Idx>1</Idx>
        <Quantity>3</Quantity>
        <Value>sample string 2</Value>
      </CustomFieldSelectItemResource>
      <CustomFieldSelectItemResource>
        <Deleted>true</Deleted>
        <Id>1</Id>
        <Idx>1</Idx>
        <Quantity>3</Quantity>
        <Value>sample string 2</Value>
      </CustomFieldSelectItemResource>
    </SelectItems>
    <Value>sample string 2</Value>
  </RepresentativeCustomFieldResource>
  <RepresentativeCustomFieldResource>
    <CustomFieldId>4</CustomFieldId>
    <DataSize>1</DataSize>
    <DataType>sample string 5</DataType>
    <Deleted>true</Deleted>
    <Name>sample string 3</Name>
    <RepresentativeId>1</RepresentativeId>
    <SelectItems>
      <CustomFieldSelectItemResource>
        <Deleted>true</Deleted>
        <Id>1</Id>
        <Idx>1</Idx>
        <Quantity>3</Quantity>
        <Value>sample string 2</Value>
      </CustomFieldSelectItemResource>
      <CustomFieldSelectItemResource>
        <Deleted>true</Deleted>
        <Id>1</Id>
        <Idx>1</Idx>
        <Quantity>3</Quantity>
        <Value>sample string 2</Value>
      </CustomFieldSelectItemResource>
      <CustomFieldSelectItemResource>
        <Deleted>true</Deleted>
        <Id>1</Id>
        <Idx>1</Idx>
        <Quantity>3</Quantity>
        <Value>sample string 2</Value>
      </CustomFieldSelectItemResource>
    </SelectItems>
    <Value>sample string 2</Value>
  </RepresentativeCustomFieldResource>
</ArrayOfRepresentativeCustomFieldResource>

text/csv

Sample:
RepresentativeId,Value,Name,CustomFieldId,DataType,SelectItems,DataSize,Deleted
"1","sample string 2","sample string 3","4","sample string 5","System.Collections.Generic.List`1[MicroNet.WebAPI.Classes.Resources.CustomFieldSelectItemResource]","1","True"
"1","sample string 2","sample string 3","4","sample string 5","System.Collections.Generic.List`1[MicroNet.WebAPI.Classes.Resources.CustomFieldSelectItemResource]","1","True"
"1","sample string 2","sample string 3","4","sample string 5","System.Collections.Generic.List`1[MicroNet.WebAPI.Classes.Resources.CustomFieldSelectItemResource]","1","True"