You need to sign in to do that
Don't have an account?
Michał Bajdek 28
database.query does not select relations
I have to write a generic method for retrieving objects in the many to many relation. The problem occurs when writing SOQL gets a complete dataset :
and in case of Database.query it doesn't get any relations as a result.
I can't use soql because the component is supposed to be generic. What do I have to do to get all fields?
and in case of Database.query it doesn't get any relations as a result.
I can't use soql because the component is supposed to be generic. What do I have to do to get all fields?
You can use getSObject() method to get the field values that you need as shown in the below screenshot
Regards,
Naga