I have the following structure: enter image description here

How do I get all Document Actions through Document Config by Document Id. Is this even possible in a single query?

1 Answer 1

String documentId; 
List<Document_Actions__c> documentActions = new List<Document_Actions__c>();
for(Document_Config__c dc : [Select id, (select id, name from Document_Actions__r) from Document_Config__c  where Document__c =:documentId] ) {

Something like this should work!
Query will depends on yours api names

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .