Pages
Home
About Me
For Contact
October 29, 2018
How to get all the fields in a Field Set in Salesforce?
Sample Field Set:
Sample Code:
for
( Schema.FieldSetMember f : SObjectType.Employee__c.FieldSets.Test.getFields() ) {
system.debug( f.getFieldPath() );
}
Here Employee__c is a Custom Object and Test is the field set name.
Output:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment