You need to sign in to do that
Don't have an account?
h20rider
Event contacts
I have been trying to get the list of ivitees on an event.
I wanted to create this trigger on the EventRelation which is not possible,
I heard you can you use thw who Id, but I get a null when I use that Id. any ideas??
Right now I am just outputing that data
public static void UpdateEventAgencyClientAttendees(List<Event> newValues){
Integer i = 0;
for (Event t : newValues){
i = i + 1;
system.debug('#### whoId and whatId: ' + t.WhatId + ':' + t.WhoId + ':' + i);
}
}
When calling UpdateEventAgencyClientAttendees, does the List<Event> you feed into newValues include the whoId? If it is a SOQL from somewhere else make sure you are returning the field.
Yes.
in the trigger i have
testClass.UpdateEventAgencyClientAttendees(Trigger.new);
and like I mentioned. I am see the debug statements, so it is reaching the code. The only problem is that they are null
Also, I just turnerd on activity sharing. this was done in our sandbox. I have already recieved a message saying that it was ready to use.
I seem to be confused what the who and what Ids are.
I thought they were the invitee contacts. That doesnt seem to be the case.
What I am really looking for is all the invitees so I can populate one of the event fields. The problem that I am having is that the EventRelations are added after the event has been saved. Also there is no way to put a trigger on the event relations. Is there anyway of getting a list of the invitees