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
F.H.KazmiF.H.Kazmi 

Issue in Calender's event

If from salesforce.com portal we make an activity history and in it an event schedule is more than one day (that a event starts on a day and ends on another) then event is not fetched by using the api for Java

if we query with any of the dates of that event it is not fetched

e.g.

Select Id,Subject,ActivityDate,ActivityDateTime,CreatedDate,IsAllDayEvent,Location,Description from Event where (ActivityDate>=2008-09-11 and ActivityDate<=2008-09-13 and OwnerId = '00530000000va5aAAA') Order by ActivityDate, ActivityDateTime


we have tried different dates for (ActivityDate>=2008-09-11 and ActivityDate<=2008-09-13 ) but still result is not shown.

Even when for testing we removed the date check that record did'nt come up

e.g. Select Id,Subject,ActivityDate,ActivityDateTime,CreatedDate,IsAllDayEvent,Location,Description from Event where (OwnerId = '00530000000va5aAAA') Order by ActivityDate, ActivityDateTime

with this query also that record did'nt come up

So, we require support regarding it issue that, how such a record will be fetched where an activity history is made and in it an event schedule is more than one day (that a event starts on a day and ends on another)
SuperfellSuperfell
Multiday events only appear in the latest API version (as they didn't exist before then, and so many older API clients would break if they saw them), make sure you're running your queries with the current API version.
F.H.KazmiF.H.Kazmi
Thanks Simon