We have a managed package app which makes dynamic queries where the customer can set which fields to query on an object.
The customer has enabled in her org the service called 'Field Service Lightning', so the
WorkOrder standard object is enabled.
The customer created a lookup on our packaged
bt_stripe__Transaction__c object to the
WorkOrder object, and set the app to dynamically query that field.
When the query is made, we are getting the following error:
Error in query: Field bt_stripe__Transaction__c.WorkOrder__c is inaccessible in this context
My guess is that this is happening because our packaged app doesn't have the access to the
WorkOrder object, so querying the lookup fails.
Is there any way to query these fields from the namespace-context?