A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to get all events for a perticular date, (need exact filter)



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 18th 07, 04:22 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 2
Default How to get all events for a perticular date, (need exact filter)

Hi,

In the Outlook Instant search using Folder.GetTable() method, we found
that while filtering the calendar events for a particular date it is
giving all calendar events for that date plus all recurring items even
if not on that date ( i.e. if we have recurring meeting say weekly
meeting on Monday and we are firing query on Tuesday's date to get
calendar events then we are getting all events on that Tuesday's date
plus the recurring meeting on Monday which occurrence is not on
Tuesday's date). These problems are with the Weekly, Monthly and
Yearly calendar items.

So to get exact result which filters we will need to use in the
Folder.GetTable() method??

I am using following filter :
@SQL=(
(
(
(urn:schemas:calendar:dtstart = '12:00 AM, 04/18/2007')
&
(urn:schemas:calendar:dtstart '12:00 AM,04/19/2007')
)
|
(
(urn:schemas:calendar:dtend '12:00 AM, 04/18/2007')
&
(urn:schemas:calendar:dtend = '12:00 AM,04/19/2007')
)
)
)


Please help ..

Thanks in advance

Ads
  #2  
Old April 19th 07, 04:11 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to get all events for a perticular date, (need exact filter)

When you add a filter to a Table object you are dealing with raw MAPI
properties, not Outlook properties that have been massaged to show local
time. You must use UTC times with tables in all cases. So do any of those
dates when compensated for local time still return items that are out of
your filter range?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


wrote in message
s.com...
Hi,

In the Outlook Instant search using Folder.GetTable() method, we found
that while filtering the calendar events for a particular date it is
giving all calendar events for that date plus all recurring items even
if not on that date ( i.e. if we have recurring meeting say weekly
meeting on Monday and we are firing query on Tuesday's date to get
calendar events then we are getting all events on that Tuesday's date
plus the recurring meeting on Monday which occurrence is not on
Tuesday's date). These problems are with the Weekly, Monthly and
Yearly calendar items.

So to get exact result which filters we will need to use in the
Folder.GetTable() method??

I am using following filter :
@SQL=(
(
(
(urn:schemas:calendar:dtstart = '12:00 AM, 04/18/2007')
&
(urn:schemas:calendar:dtstart '12:00 AM,04/19/2007')
)
|
(
(urn:schemas:calendar:dtend '12:00 AM, 04/18/2007')
&
(urn:schemas:calendar:dtend = '12:00 AM,04/19/2007')
)
)
)


Please help ..

Thanks in advance


  #3  
Old April 19th 07, 04:49 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 2
Default How to get all events for a perticular date, (need exact filter)

On Apr 19, 7:11 pm, "Ken Slovak - [MVP - Outlook]"
wrote:
When you add a filter to a Table object you are dealing with raw MAPI
properties, not Outlook properties that have been massaged to show local
time. You must use UTC times with tables in all cases. So do any of those
dates when compensated for local time still return items that are out of
your filter range?

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm

wrote in message

s.com...



Hi,


In the Outlook Instant searchusingFolder.GetTable() method, we found
that whilefilteringthe calendareventsfor a particular date it is
giving all calendareventsfor that date plus all recurring items even
if not on that date ( i.e. if we have recurring meeting say weekly
meeting on Monday and we are firing query on Tuesday's date to get
calendareventsthen we are getting alleventson that Tuesday's date
plus the recurring meeting on Monday which occurrence is not on
Tuesday's date). These problems are with the Weekly, Monthly and
Yearly calendar items.


So to get exact result which filters we will need to use in the
Folder.GetTable() method??


I amusingfollowing filter :
@SQL=(
(
(
(urn:schemas:calendar:dtstart = '12:00 AM, 04/18/2007')
&
(urn:schemas:calendar:dtstart '12:00 AM,04/19/2007')
)
|
(
(urn:schemas:calendar:dtend '12:00 AM, 04/18/2007')
&
(urn:schemas:calendar:dtend = '12:00 AM,04/19/2007')
)
)
)


Please help ..


Thanks in advance- Hide quoted text -


- Show quoted text -


Yes i am not using UTC time but still it must have to give me the
exact result of my given filter range.
And only recurrence events those are not scheduled within the filter
range are coming with the events which are scheduled within the filter
range.
You can say that all the recurrences items in my calendar are coming
when i filter out events within a perticular range.

Can you try using the above posted filter ?? what is the result you
are getting ??

  #4  
Old April 19th 07, 10:02 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to get all events for a perticular date, (need exact filter)

According to the help on filtering items you must use Items.Filter or
Items.Restrict if you want your filter to work with recurring items. Use
Items.IncludeRecurrences before applying the filter or restriction. The help
goes on to say that the Table object returns only 1 row representing the
recurrent appointment item instead of one row foe each occurrence within the
filter parameters.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


wrote in message
oups.com...
snip
Yes i am not using UTC time but still it must have to give me the
exact result of my given filter range.
And only recurrence events those are not scheduled within the filter
range are coming with the events which are scheduled within the filter
range.
You can say that all the recurrences items in my calendar are coming
when i filter out events within a perticular range.

Can you try using the above posted filter ?? what is the result you
are getting ??


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Events entered in current date eztune Outlook - Calandaring 1 March 30th 07 03:49 AM
AdvancedSearch Filter Syntax for Advanced Date Search on Appointme StephenCarterMCP Outlook and VBA 1 February 20th 07 02:19 PM
create a filter to show calendar events for today going forward KC Outlook - Calandaring 0 June 27th 06 01:20 AM
Why are dates bolded in Date Navigator when there are no events? RM Outlook - Calandaring 0 June 16th 06 02:02 PM
Calendar events and appointments date Karen Outlook - Calandaring 0 January 27th 06 03:35 AM


All times are GMT +1. The time now is 09:28 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.