Re: How to: Create recurring meeting (WebDav)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: L Magarian (LMagarian_at_discussions.microsoft.com)
Date: 10/07/04


Date: Thu, 7 Oct 2004 13:39:01 -0700

Note: now that I'm setting the timezoneid on recurring events they do expand
in the windows version of Outlook, but still don't in Outlook Web Access.

Any ideas?

-LM

"Glen Scales [MVP]" wrote:

> How are you importing the XML ? it sounds like you are maybe missing one (or
> more) properties that are getting fixed when you do the save in Outlook. You
> should be able to track down which properties are getting changed when you
> do the save in Outlook using OutlookSpy and putting a watch on that
> appointment item. Either that or post the code your trying to use and
> someone maybe able to spot the error.
>
> Cheers
> Glen
>
>
> "L Magarian" <LMagarian@discussions.microsoft.com> wrote in message
> news:25B9D4A0-F0B1-4C8C-8A2D-BF572E3B6EBF@microsoft.com...
> > Hi,
> >
> > I've got the XML importing correctly into Exchange with one problem:
> > The recurrance information is visible on the master event if you go to the
> > recurrance window but the recurring events don't show up on the calendar.
> > I've found if I save the master appoinment in outlook after the import
> that
> > the recurrances do show on the calendar. Is there a way to initiate this
> > save event from WebDav? Or is there something else that I'm supposed to
> do?
> >
> > Any help appreciated.
> >
> > -LM
> >
> >
> > "Glen Scales [MVP]" wrote:
> >
> > > I think the code you have for entering the mv.string wont work properly,
> I
> > > think its suppose to be one entry with attributes separated by ";". If
> you
> > > have a look in Exchange explorer you should see what I mean. Try this
> > > instead
> > >
> > > "<c:rrule dt:dt=""mv.string"">" & _
> > >
> "<x:v>FREQ=DAILY;COUNT=6;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR;WKST=SU</x:v>"
> > > & _
> > > "</cal:rrule>" & _
> > >
> > > The other thing that is important is to include the timezoneid for
> whatever
> > > timezone your in you can find most of the enums here
> > >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/html/_cdosys_cdotimezoneid_enum.asp
> > > if you cant find yours check in the vCalender section of any of your
> > > appointments.
> > >
> > > I've adapted the SDK sample and this works for me don't forget to change
> the
> > > timezone (57 is for Sydney)
> > >
> > > Cheers
> > > Glen
> > >
> > > set xmlReq = createobject("Microsoft.XMLHTTP")
> > > strExchSvrName = "server"
> > > strMailbox = "mailbox"
> > > strApptItem = "testappointment.eml"
> > > strApptURL = "http://" & strExchSvrName & "/exchange/" & _
> > > strMailbox & "/Calendar/" & strApptItem
> > >
> > > strXMLNSInfo = "xmlns:g=""DAV:"" " & _
> > > "xmlns:e=""http://schemas.microsoft.com/exchange/"" " & _
> > > "xmlns:mapi=""http://schemas.microsoft.com/mapi/"" " & _
> > > "xmlns:mapit=""http://schemas.microsoft.com/mapi/proptag/"" " & _
> > > "xmlns:x=""xml:"" xmlns:cal=""urn:schemas:calendar:"" " & _
> > > "xmlns:dt=""urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"" " & _
> > > "xmlns:header=""urn:schemas:mailheader:"" " & _
> > > "xmlns:mail=""urn:schemas:httpmail:"">"
> > > strCalInfo = "<cal:location>meetappt Location</cal:location>" & _
> > > "<cal:dtstart
> > > dt:dt=""dateTime.tz"">2004-09-13T23:00:00.000Z</cal:dtstart>" & _
> > > "<cal:dtend
> dt:dt=""dateTime.tz"">2004-09-13T23:30:00.000Z</cal:dtend>"
> > > & _
> > > "<cal:instancetype dt:dt=""int"">1</cal:instancetype>" & _
> > > "<cal:busystatus>BUSY</cal:busystatus>" & _
> > > "<cal:meetingstatus>CONFIRMED</cal:meetingstatus>" & _
> > > "<cal:alldayevent dt:dt=""boolean"">0</cal:alldayevent>" & _
> > > "<cal:responserequested dt:dt=""boolean"">1</cal:responserequested>"
> & _
> > > "<cal:rrule dt:dt=""mv.string"">" & _
> > >
> "<x:v>FREQ=DAILY;COUNT=6;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR;WKST=SU</x:v>"
> > > & _
> > > "</cal:rrule>" & _
> > > "<cal:timezoneid dt:dt=""int"">57</cal:timezoneid>"
> > > strHeaderInfo = "<header:to>" & strMailbox & "</header:to>"
> > > strMailInfo = "<mail:subject>Test Appointment Subject</mail:subject>" &
> _
> > > "<mail:htmldescription>Let's meet here</mail:htmldescription>"
> > > strApptRequest = "<?xml version=""1.0""?>" & _
> > > "<g:propertyupdate " & strXMLNSInfo & _
> > > "<g:set><g:prop>" & _
> > > "<g:contentclass>urn:content-classes:appointment</g:contentclass>" &
> _
> > > "<e:outlookmessageclass>IPM.Appointment</e:outlookmessageclass>" & _
> > > strMailInfo & _
> > > strCalInfo & _
> > > strHeaderInfo & _
> > > "<mapi:finvited dt:dt=""boolean"">1</mapi:finvited>" & _
> > > "</g:prop></g:set>" & _
> > > "</g:propertyupdate>"
> > >
> > > ' Create the DAV PROPPATCH request.
> > > Set xmlReq = CreateObject("Microsoft.XMLHTTP")
> > > xmlReq.open "PROPPATCH", strApptURL, False
> > > xmlReq.setRequestHeader "Content-Type", "text/xml"
> > > xmlReq.send strApptRequest
> > > If (xmlReq.Status >= 200 And xmlReq.Status < 300) Then
> > > wscript.echo "Appointment created successfully."
> > > Else
> > > wscript.echo "PROPPATCH status: " & xmlReq.Status & vbCrLf & _
> > > "Status text: " & xmlReq.statusText
> > > End If
> > > Set xmlReq = Nothing
> > >
> > >
> > >
> > >
> > >
> > > "Hobietje" <Hobietje@discussions.microsoft.com> wrote in message
> > > news:24EF38E0-201D-45AD-B71E-DE031C78320D@microsoft.com...
> > > > Hi everyone
> > > >
> > > > Does anyone know how I can create a recurring meeting? I already have
> > > > everything up and running to create meetings, but I cant get the
> > > recurrance
> > > > to work ... I got something like this based on an example on
> multivalued
> > > > properties by Microsoft. The request returns succesfully, but when I
> > > check
> > > > outlook, it only created a single meeting with no recurrance :-(.
> > > >
> > > > davsql += "<c:instancetype dt:dt=\"int\">1</c:instancetype>";
> > > > davsql += "<c:rrule dt:dt=\"mv.string\">";
> > > > davsql += "<x:v>FREQ=DAILY</x:v>";
> > > > davsql += "<x:v>COUNT=6</x:v>";
> > > > davsql += "<x:v>INTERVAL=1</x:v>";
> > > > davsql += "<x:v>BYDAY=MO, TU, WE, TH, FR</x:v>";
> > > > davsql += "<x:v>WKST=SU</x:v>";
> > > > davsql += "</c:rrule>";
> > > >
> > > > Any ideas?
> > > >
> > > > Thanks
> > >
> > >
> > >
>
>
>



Relevant Pages

  • Re: How to: Create recurring meeting (WebDav)
    ... now that I'm setting the timezoneid on recurring events they do expand ... in the windows version of Outlook, but still don't in Outlook Web Access. ...
    (microsoft.public.exchange2000.development)
  • Re: Recurring Event Annoyances
    ... If you can't achieve recurring calendar dates in STS 1.0 but can in Outlook, ... > for non-recurring events, but not recurring events. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Outlook 2003 conversion to Outlook 2007 problem...
    ... I need help trying to figure out why my recurring events get screwed ... up when I import my backup .pst file into Outlook 2007. ... By the way...the 2003 version is on an older Dell laptop with Windows ...
    (microsoft.public.officeupdate)
  • Export calendar
    ... As I have several--okay maybe one hundred--people in my contact lists for whom I have birthday reminders in my calendar and, thus, have a lot of recurring items. ... As I'd like to copy my calendar to a couple of my web based calendars--MSN and Gmail--I'm wondering if there's been a workaround created so one can export from Outlook with the recurring events either deleted or "fixed" in some way so they'll be accepted by the other programs? ...
    (microsoft.public.outlook)
  • Re: How can I see all intances of a recurring task in the calendar
    ... Their thinking is that if the old task hasn't been completed yet, why would you need to regenerate it for the task list? ... Diane Poremsky [MVP - Outlook] ... Instances of recurring items don't really exist. ... appointment and add a recurrence. ...
    (microsoft.public.outlook.general)