Skip to main content

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 NameTypeRequired?Description
SubModuleIdIntegerYesThis 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.
GroupIDLong IntegerYesThis 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 ModuleRecord TypeSubModuleId Value
ContactIndividual65539
Business65561
PolicyAll1769495
Life1769483
Auto1769484
Disability1769485
Annuity1769486
Long-Term Care1769487
Medical1769488
Homeowner1769489
Umbrella1769490
Other1769491
Property & Casualty1769498
Critical Illness1769493
Investment AccountAll2621451
Investment PositionAll2686989
Pending CaseAll4587543
Life4587528
Auto4587532
Disability4587533
Annuity4587534
Long-Term Care4587535
Medical4587536
Homeowner4587537
Umbrella4587538
Other4587539
Property & Casualty4587545
Critical Illness4587541
ProductAll6750213
AdvisorAll8192005
AgencyAll8192021
CarrierAll8716304
CandidateAll9830407
HouseholdAll18087946
OpportunityAll19857415
LeadsAll19922953
Group PlanLife43778051
Dental43778053
Long-Term Care43778054
Medical43778055
Accidental Death & Dismemberment43778056
Retirement43778057
Short-Term Disability43778058
Travel43778059
Vision43778060
Section 12543778061
Long-Term Disability43778062
Other43778063
Cancer43778065
Hospital43778067
EventAll61734920
FirmAll151257096
ProducerAll151650313
RiderAll151650313

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>