function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tyler DahleTyler Dahle 

Mapping event relations to events

Looking for guidance on setting up maps to map event relations to their events in salesforce. Right now I have all events, I loop through them all to create custom events with modified data I need from them. I then check if they are group events, If they are, I query for event relation relationIds, then query for names for those relationIds, this quickly goes past the 100 soql query limit... 

I am not fully seeing how you can avoid the event relation per group event query.... Any help would be appreciated.

This is in apex controller.