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
VarunCVarunC 

Related Event Records

Hi,

I want to Fetch the PARENT Event Record whenever I view the Related Group Event of Another User, but I could not do so:
I'm using this Query:

Code:
Event e = [Select Id From Event Where Subject =: e.Subject And SystemModstamp =: e.SystemModstamp And CreatedDate =: e.CreatedDate And IsChild =: true LIMIT 1];

 
This QUery is always returning an Exception.

Is there any way around.

What I'm trying to do is:
Consider an Event with 3 Attendees, and I want to Read the ID value of Parent Event when I View the Event with Login User as Additional Attendee, by Additional Attendee I mean the User wich is Not Logged In, and is Not the Owner of the Event.

Now, this situation arises because, Salesforce Creates n-Number of Events when n-Number of Attendees are added to Event. And the Activities are just saved up as ONE activity with IsChild value - false, and Other Activities having IsChild = true. But when I View the Activity with IsChild = true then I NEED A WAY to read the EventID value of Above Grouped Event where IsChild = false.

I hope I'm not confusing you all. Please let me know if I'm.
Alexey PanteleevAlexey Panteleev
Looking for a way to get the parent event also. Any updates here?