Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Thu, 16 Feb 2006 01:55:28 +0100,    group: microsoft.public.exchange2000.development        back       


Creating a MODIFY exception fails   
Hi,

I have been trying for a day now but I can not get it to work.
When I create an exception of type "DELETE"  everything is fine. It works 
but "MODIFY" won't.

I do the following: (objoutput is an EXISTING recurring master item in my 
outlook calendar)
the code runs on the server (cdoex)
------------
    Dim ExcepOut As IException
    Set ExcepOut = objOutput.Exceptions.Add("Modify")

    ExcepOut.RecurrenceID = datetimevalue
    ExcepOut.StartTime = datetimevalue
    ExcepOut.EndTime =datetimevalue
------------

The above code fails.
However, this works: to create a DELETE type exception I only have to do

---------
    Set ExcepOut = objOutput.Exceptions.Add("Delete")
    ExcepOut.RecurrenceID = datetimevalue
----------

The weird part is that when I take objOutput in my debug watch, I see that 
his exceptions collection goes up by one when I create the DELETE exception.
So the moment the [Set ExcepOut = objOutput.Exceptions.Add("Delete")] 
command kicks in, I see the exceptions count go up.
But I don't see that with the [Set ExcepOut = 
objOutput.Exceptions.Add("Modify")]  line.
In other words, the Set won't add the exception to the exceptions 
collection!

It's not that the exception object fails. I can debug/watch the ExcepOut 
object and see the starttime change from nothing to a good value as with the 
endtime value.

Is this a cdoex bug that anyone knows of? Can't it be done with existing 
items but only with new items, what they do here: 
http://support.microsoft.com/default.aspx?id=314367

Thanks for reading this,
John
date: Thu, 16 Feb 2006 01:55:28 +0100   author:   Sorry

Re: Creating a MODIFY exception fails   
Update:
This started working all of a sudden.
> The weird part is that when I take objOutput in my debug watch, I see that 
> his exceptions collection goes up by one when I create the DELETE 
> exception.
> So the moment the [Set ExcepOut = objOutput.Exceptions.Add("Delete")] 
> command kicks in, I see the exceptions count go up.
> But I don't see that with the [Set ExcepOut = 
> objOutput.Exceptions.Add("Modify")]  line.
> In other words, the Set won't add the exception to the exceptions 
> collection!

So I do have the exception in the exceptions collection now both with a 
DELETE as a MODIFY exception.
However after issuing [objOutput.datasource.save] the item in my calendar is 
not updated with the MODIFY exception. I only get the DELETE exception.

grrr!
date: Thu, 16 Feb 2006 02:35:00 +0100   author:   Sorry

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us