Re: How to: Create recurring meeting (WebDav)
From: L Magarian (LMagarian_at_discussions.microsoft.com)
Date: 10/07/04
- Next message: L Magarian: "Re: How to: Create recurring meeting (WebDav)"
- Previous message: L Magarian: "Re: How to: Create recurring meeting (WebDav)"
- In reply to: Glen Scales [MVP]: "Re: How to: Create recurring meeting (WebDav)"
- Next in thread: L Magarian: "Re: How to: Create recurring meeting (WebDav)"
- Messages sorted by: [ date ] [ thread ]
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
> > >
> > >
> > >
>
>
>
- Next message: L Magarian: "Re: How to: Create recurring meeting (WebDav)"
- Previous message: L Magarian: "Re: How to: Create recurring meeting (WebDav)"
- In reply to: Glen Scales [MVP]: "Re: How to: Create recurring meeting (WebDav)"
- Next in thread: L Magarian: "Re: How to: Create recurring meeting (WebDav)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|