In my controller I have a List of string. This list contains The Object Name, and the Field Name. So, I need to get the "Label" Name of this fields.
I need to make a query where the conditions is the object name and the fieldname.
Please take consideration that this is Dynamic, So, I cant just simply create a list of the object because in this list of string I may have any object of the whole solution.
So, I dont know how to make this query to the metadata, in order to know the labels name of my list string of fields. Example:
I have "Student__c" in a variable, I need to get "Student" in another variable. but it gotta be the "real" label of the respective object.
and it can be a plenty of fields, so cant not be hardcore. It have to be consulting in somewhere the correct label, but I dont know where to consult. I'll really appreciate your help!