locked
Finding all the related records to account. RRS feed

  • Question

  • Hello friends,

    I am into situation where I need to share all the child records on share of parent record.

    For instance, Say, If I am sharing account record to 'Team A' then all the child record to that account like 'opportunity','order',etc.. should be shared with 'Team A' too.

    Is there any generic solution rather then finding all the different type of record individually ?

    so let me know if it is possible something like

    foreach (all the related entities)
    {
    	foreach(all the related records)
    	{
    	}
    }

    Any help would be greatly appreciated.


    Thanks and regards,
    Hiren Solanki.
    Please vote or mark as a answer if it helped you.

    Friday, August 10, 2012 2:51 PM

All replies

  • You can take a look at this blog post - on the entity itself you can chose how related records are affected when events like Share and Unshare happen. You can elect to have the related records follow the share of the parent record.

    Jason Lattimer

    Monday, August 13, 2012 4:04 AM
    Moderator