I'm trying to retrieve record values of a managed package custom object (call it abc__custom_object__c, where 'abc' is the package namespace, as an example). Trying to run the following SOQL query returns the error 'sObject type 'abc__custom_object__c' is not supported':
SELECT Name FROM abc__custom_object__c
I've also tried :
Schema.SObjectType targetType = Schema.getGlobalDescribe().get('abc__custom_object__c');
Which gives a NullPointerException when I try to use the variable targetType. Is there a way to retrieve record information from 'abc__custom_object__c' from apex if 'abc__custom_object__c' is part of another managed package?
So far I've just been running code in an Execute Anonymous window and using Query Editor so I don't have more Apex code to share at this point in time.
'abc__custom_object__c' is part of a third-party managed package I have installed from AppExchange.
EDIT: changed 'custom__object__c' to 'abc__custom_object__c' in example to make the inclusion of the namespace more clear.