---
schema_version: "1"
id: 87bf1d5a1b697641b58bbf1c5ce4a127482da40b012fac5cf761d34dd394ff5a
title: getFieldList Method
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-getfieldlist-method.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-getfieldlist-method.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 97ecb9795a984c581dc8da8cffcff1f33e95c807c52a9fedd955fe169ef1feb8
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# getFieldList Method

Returns the configured fields in `FieldSet__c` for a specific feature name.

<!-- Section title is the name of the method followed by "Method". If appropriate, precede the method name with the class name and a colon.-->

## Class

<!-- broken link-->

<!-- Link(s) to the class(es) to which this method belongs. If more than one class implements the same interface, use an itemized list. Don't use a link if the class itself isn't documented for users, but do list the class name.-->


## Input Parameters

<!-- If this method has separate input and output parameters, split this section into two sections titled "Input Parameters" and "Output Parameters". Some methods of classes that implement VlocityOpenInterface2 might require an "Options Parameters" section as well.-->

| Parameter   | Required | Description                                                 |
| ----------- | -------- | ----------------------------------------------------------- |
| featureName | Required | Name of feature name mentioned in Field Setting records.    |
| objectName  | Required | Name of the object. Example: `vlocity_cmt__ServicePoint__c` |

## Output Parameters

| Parameter | Description              |
| --------- | ------------------------ |
| result    | Returns array of fields. |

## Example Input Data

<!-- This is usually JSON, but it could be XML or a single value. For methods of classes implementing VlocityOpenInterface2 that have options parameters, include those here.-->

```
{"featureName":"MultiServiceMasterCartFields","objectName":"Quote"}
```

## Example Output Data

<!-- This is usually JSON, but it could be XML or a single value. Salesforce uses Return Type, but this takes care of that.-->

```
{"result":[{"displaySequence":1,"objectAPIName":"vlocity_cmt__ServicePoint__c","objectName":"vlocity_cmt__ServicePoint__c","fieldLabel":"Market Identifier","fieldAPIName":"vlocity_cmt__MarketIdentifier__c","fieldName":"vlocity_cmt__MarketIdentifier__c"},{"displaySequence":2,"objectAPIName":"vlocity_cmt__Premises__c","objectName":"vlocity_cmt__ServicePoint__c","fieldLabel":"Street Address","fieldAPIName":"vlocity_cmt__StreetAddress__c","fieldName":"vlocity_cmt__PremisesId__r.vlocity_cmt__StreetAddress__c"},{"displaySequence":3,"objectAPIName":"vlocity_cmt__Premises__c","objectName":"vlocity_cmt__ServicePoint__c","fieldLabel":"City","fieldAPIName":"vlocity_cmt__City__c","fieldName":"vlocity_cmt__PremisesId__r.vlocity_cmt__City__c"},{"displaySequence":4,"objectAPIName":"vlocity_cmt__Premises__c","objectName":"vlocity_cmt__ServicePoint__c","fieldLabel":"Postal Code","fieldAPIName":"vlocity_cmt__PostalCode__c","fieldName":"vlocity_cmt__PremisesId__r.vlocity_cmt__PostalCode__c"},{"displaySequence":5,"objectAPIName":"vlocity_cmt__ServicePoint__c","objectName":"vlocity_cmt__ServicePoint__c","fieldLabel":"Utility Provider","fieldAPIName":"vlocity_cmt__UtilityProvider__c","fieldName":"vlocity_cmt__UtilityProvider__c"},{"displaySequence":6,"objectAPIName":"vlocity_cmt__ServicePoint__c","objectName":"vlocity_cmt__ServicePoint__c","fieldLabel":"Average Monthly Usage","fieldAPIName":"vlocity_cmt__AverageMonthlyUsage__c","fieldName":"vlocity_cmt__AverageMonthlyUsage__c"},{"displaySequence":7,"objectAPIName":"vlocity_cmt__ServicePoint__c","objectName":"vlocity_cmt__ServicePoint__c","fieldLabel":"Load Profile","fieldAPIName":"vlocity_cmt__LoadProfile__c","fieldName":"vlocity_cmt__LoadProfile__c"},{"displaySequence":8,"objectAPIName":"vlocity_cmt__ServicePoint__c","objectName":"vlocity_cmt__ServicePoint__c","fieldLabel":"Voltage Level","fieldAPIName":"vlocity_cmt__VoltageLevel__c","fieldName":"vlocity_cmt__VoltageLevel__c"}],"error":"OK"}
```
