Last updated: 2024-06-07
GetCustomLabels Method
In this topic:
Overview
The GetCustomLabels method returns a list of all custom field labels for a particular SmartOffice module and record type.
The GetCustomLabels method is invoked using the method operation.
Parameters
| Parameter Name | Type | Required? | Description |
|---|---|---|---|
SubModuleId | Integer | Yes | This is the record type for which you want to retrieve a list of custom field labels. See the Reference section below for a list of valid values. |
GroupID | Long Integer | Yes | This is the user group whose custom field labels you want to retrieve (in SmartOffice, different user groups can have their own custom fields). The most common value is 1, which refers to the default "All Users in the Office" user group. |
Reference
The following table lists the values you can use for the SubModuleId parameter.
| SmartOffice Module | Record Type | SubModuleId Value |
|---|---|---|
| Contact | Individual | 65539 |
| Business | 65561 | |
| Policy | All | 1769495 |
| Life | 1769483 | |
| Auto | 1769484 | |
| Disability | 1769485 | |
| Annuity | 1769486 | |
| Long-Term Care | 1769487 | |
| Medical | 1769488 | |
| Homeowner | 1769489 | |
| Umbrella | 1769490 | |
| Other | 1769491 | |
| Property & Casualty | 1769498 | |
| Critical Illness | 1769493 | |
| Investment Account | All | 2621451 |
| Investment Position | All | 2686989 |
| Pending Case | All | 4587543 |
| Life | 4587528 | |
| Auto | 4587532 | |
| Disability | 4587533 | |
| Annuity | 4587534 | |
| Long-Term Care | 4587535 | |
| Medical | 4587536 | |
| Homeowner | 4587537 | |
| Umbrella | 4587538 | |
| Other | 4587539 | |
| Property & Casualty | 4587545 | |
| Critical Illness | 4587541 | |
| Product | All | 6750213 |
| Advisor | All | 8192005 |
| Agency | All | 8192021 |
| Carrier | All | 8716304 |
| Candidate | All | 9830407 |
| Household | All | 18087946 |
| Opportunity | All | 19857415 |
| Leads | All | 19922953 |
| Group Plan | Life | 43778051 |
| Dental | 43778053 | |
| Long-Term Care | 43778054 | |
| Medical | 43778055 | |
| Accidental Death & Dismemberment | 43778056 | |
| Retirement | 43778057 | |
| Short-Term Disability | 43778058 | |
| Travel | 43778059 | |
| Vision | 43778060 | |
| Section 125 | 43778061 | |
| Long-Term Disability | 43778062 | |
| Other | 43778063 | |
| Cancer | 43778065 | |
| Hospital | 43778067 | |
| Event | All | 61734920 |
| Firm | All | 151257096 |
| Producer | All | 151650313 |
| Rider | All | 151650313 |
Example
The following request retrieves a list of custom fields for the individual contact record type (SubModuleId=65539):
XML
<request version='1.0'>
<header>...</header>
<method>
<GetCustomLabels>
<SubModuleId>65539</SubModuleId>
<GroupID>1</GroupID>
</GetCustomLabels>
</method>
</request>The response indicates that individual contact records in this office have three labeled custom fields:
XML
<response version="1.0">
<header>
<sessionClosed />
</header>
<method>
<GetCustomLabels>
<CustomLabels>
<CustomLabel>
<CustomColumn>ALPHANUM1</CustomColumn>
<LabelName>Primary Charity</LabelName>
</CustomLabel>
<CustomLabel>
<CustomColumn>ALPHANUM2</CustomColumn>
<LabelName>Secondary Charity</LabelName>
</CustomLabel>
<CustomLabel>
<CustomColumn>DATE1</CustomColumn>
<LabelName>Anniversary</LabelName>
</CustomLabel>
</CustomLabels>
</GetCustomLabels>
</method>
<_status>OK</_status>
<!-- Cost 708 mill seconds. -->
</response>