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

querying whoid for multiple values

  whoid field on event :
  In an event record there are multiple contacts in name(whoid) field.
  but when I am querying it, I am just getting one contact Id.
  Do you know any way to get all contacts in whoid?
  Thanks in advance for any help.  
ShashankShashank (Salesforce Developers) 
There will always be only 1 whoid for an event. If you want gto get the list of all contacts invitees in an event, you should query the "eventrelation" object instead: