About this question
I am getting the below-mentioned error, which looks like this:
Line: 4, Column: 1 System.SObjectException: SObject row was retrieved via SOQL without querying the requested field: Service_Contract_Products__c.Installed_Product__r. But when I am running the same code inside a class, I am not getting the error.
I am running this code with the logic that a Covered Product is an object. The installed product is the field present in Covered Product, and its status is the picklist field on the installed product.
Can I get any solution regarding this problem?
