Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
FieldSetMember Class
Namespace
Usage
1List<Schema.FieldSetMember> fields =
2 Schema.SObjectType.Account.fieldSets.getMap().get('field_set_name').getFields();1List<Schema.FieldSetMember> fields =
2 Schema.SObjectType.Account.fieldSets.field_set_name.getFields();FieldSetMember Methods
The following are methods for FieldSetMember. All are instance methods.
getDBRequired()
Signature
public Boolean getDBRequired()
Return Value
Type: Boolean
getFieldPath()
Signature
public String getFieldPath()
Return Value
Type: String
Example
See Displaying a Field Set on a Visualforce Page for an example of how to use this method.
getLabel()
Signature
public String getLabel()
Return Value
Type: String
getRequired()
Signature
public Boolean getRequired()
Return Value
Type: Boolean
getType()
Signature
public Schema.DisplayType getType()
Return Value
Type: Schema.DisplayType
getSObjectField()
Signature
public Schema.sObjectField getSObjectField()
Return Value
Type: Schema.SObjectField