Nested for each logic for base record and it's relationships

Certified Associate Developer

Hi ,

I have one base record in that one i'm forming three relationship two one-to-many and one many-to-one.

now i want to typecast data fields from base records and related records in one CDT.

can anyone please explain how i can achieve this using for each as i want to cast data for each id of base record.

  Discussion posts and replies are publicly visible