You need to sign in to do that
Don't have an account?
RelationShip Query Iteration
Hi All,
Good Day. Could you help me with the below scenario.
I have two object Collaboration Group and Collobration Group Member.
Relation Ship:
CollaborationGroup is Parent and Collaboration Group Member is Child
Relationship Name is GroupMembers in Collaboration Group.
Data Set Example
Colloboration Group:
Cg1, CgName,
Collobaration Group Member:
CGM1, CGName1, CG1(Reference to Parent)
CGM2, CGName2, CG1(Reference to Parent)
When I query in work Bench as below
Select id,Name, (Select Id from GroupMembers) from ColloborationGroup --> I get Below result
CG1, CgName, CGM1,CGM2(as a table).
But In the apex code when I try to iterate i am not getting the Member information i am only getting CG1,CgName information.
Any help will be appreciated how to get the Member information while iterating in APEX
You can reachout to accelerate team who can help your implementation request if you have premier support.
https://help.salesforce.com/s/articleView?id=000387492&type=1
Thanks,