+ 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: http://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_eventattendee.htm