I have piece of code below:
for(Schema.FieldSetMember fsm : SObjectType.Vacancy_D2D__c.FieldSets.Tooltip_fields.getFields()){
if(fsm.getType() == 'String'){
tool += Utility.addTableRow(fsm.getLabel(), String.valueOf(d.get(fsm.getFieldPath())));
}}
I just want to check what kind of data it has returned abd based on that I'll proceed. But I'm getting error as below.
Comparison arguments must be compatible types: Schema.DisplayType, String