Yes, that is correct.
Thank you
i need some more help
hi i want to add two field of child obj an put sum in a parent obj || name of child obj = " Object_2__c " field name = " Amount_Paid__c & Amount_Due__c " result in parent obj name = " Object_2__c " field name = " Sum__c"
Did you try like below approach?
This will store the Accountid and list of contacts in the map.
I guess this may not be possible with single SOQL query.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
All Answers
Do you mean you want to put all the child record as the values and Parent Id as key in a map?
Thanks,
Did you try like below approach?
This will store the Accountid and list of contacts in the map.
I guess this may not be possible with single SOQL query.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
if you have other question please post it as new question.
Thanks,