Last updated: 2024-06-07
GetCustomLabelDetail Method
In this topic:
Overview
The GetCustomLabelDetail method returns the label assigned to a particular custom field for a particular SmartOffice module and record type.
The GetCustomLabelDetail method is invoked using the method operation.
Parameters
| Parameter Name | Type | Required? | Description |
|---|---|---|---|
SubModuleId | Integer | Yes | Identifies the record type for which you want to retrieve a list of custom field labels. For a list of these IDs, refer to the topic about the GetCustomLabels method . |
CustomLabelName | String | Yes | This is the ID of the office in which the SmartView for Advisors user account resides. Note that this value is the primary key (e.g., 1), not the full object ID (e.g., Office.1). |
Example
The following request retrieves the label assigned to the Lookup1 custom field for the individual contact record type (SubModuleId=65539):
XML
<request version='1.0'>
<header>...</header>
<method>
<GetCustomLabelDetail>
<SubModuleId>65539</SubModuleId>
<CustomLabelName>Lookup1</CustomLabelName>
</GetCustomLabelDetail>
</method>
</request>The response returns the field label:
XML
<response version="1.0">
<header>
<sessionClosed />
</header>
<method>
<GetCustomLabelDetail>
<CustomLabelDetail>
<CustomLabel>Favorite Sport</CustomLabel>
</CustomLabelDetail>
</GetCustomLabelDetail>
</method>
<_status>OK</_status>
<!-- Cost 708 mill seconds. -->
</response>