Object o = myOb.get(myFieldName);
Does your code look something like this?
System.SObjectException: Invalid field SBQQ__Product__c for SBQQ__QuoteLine__c
And you get an error something like that?
This is an apex error. This can happen with any field on any object. If you’re here, you probably have less hair because you’re pulling it out trying to figure out why, in tarNATION, the field you’re referencing is not valid for the object you’re trying to get the value out of. Have no fear! The answer is here!
You have a space before and/or after the field name. 😂
Comments