Using Find with [EntryID]

 
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Add-Ins RSS
Next:  com addin button callbacks.  
Author Message
Rick H
External


Since: May 17, 2005
Posts: 10



PostPosted: Thu Feb 22, 2007 7:39 am    Post subject: Using Find with [EntryID]
Archived from groups: microsoft>public>outlook>program_addins (more info?)

Can you use the Find command with EntryID?
Criteria = "([EntryID] = """ + ls_entry_id + """)"
This is what I'm using but getting error "The property EntryID in the
condition is not invalid"

I'm trying to get all dates in a new recurring entry. I'm using this
to loop through the new item and get all the recurring date for the
new recurring item

Thanks, Rick
Back to top
Rick H
External


Since: May 17, 2005
Posts: 10



PostPosted: Thu Feb 22, 2007 8:48 am    Post subject: Re: Using Find with [EntryID] for recurring items [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 22, 10:39 am, "Rick H" wrote:
> Can you use the Find command with EntryID?
> Criteria = "([EntryID] = """ + ls_entry_id + """)"
> This is what I'm using but getting error "The property EntryID in the
> condition is not invalid"
>
> I'm trying to get all dates in a new recurring entry. I'm using this
> to loop through the new item and get all the recurring date for the
> new recurring item
>
> Thanks, Rick

Never mind on the EntryId I found where it is not valid for the Find
command. Now a new question.
When the user enters a new recurring item what is the easiet way to
get all dates with in this recurring item.
I get the recurrence pattern, but I don't see any easy way of getting
the recurring dates with this info.

Thanks, Rick
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3405



PostPosted: Fri Feb 23, 2007 10:12 am    Post subject: Re: Using Find with [EntryID] for recurring items [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

There is no easy way.

You have to get and analyze the RecurrencePattern. Start at the initial date
and apply the recurrence formula to that to get the next instance. If that
fails or returns a null object you then have to check the Exceptions
collection of the RecurrencePattern to see if the instance for that date has
become an exception by being changed or deleted.

After you get the date for the following instance, you retrieve it using the
GetOccurrence() method.

--
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


"Rick H" wrote in message

> On Feb 22, 10:39 am, "Rick H" wrote:
>> Can you use the Find command with EntryID?
>> Criteria = "([EntryID] = """ + ls_entry_id + """)"
>> This is what I'm using but getting error "The property EntryID in the
>> condition is not invalid"
>>
>> I'm trying to get all dates in a new recurring entry. I'm using this
>> to loop through the new item and get all the recurring date for the
>> new recurring item
>>
>> Thanks, Rick
>
> Never mind on the EntryId I found where it is not valid for the Find
> command. Now a new question.
> When the user enters a new recurring item what is the easiet way to
> get all dates with in this recurring item.
> I get the recurrence pattern, but I don't see any easy way of getting
> the recurring dates with this info.
>
> Thanks, Rick
>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Add-Ins All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum