Lets say I have an SObject record
{
Id: "abc",
Field_A__c : "field A value",
Field_B__c : "field B value"
}
and a string "Field_A__c".
In apex, is there anyway i can get the data "field A value" using just the record and the string?
if the field was not a string i could have done sobject.Field_A__c to get the value, but that is not the case.