Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

RecurrenceData Format Inconsistent

$
0
0

I was able to successfully use SSIS and web services to pull calendar information from my companies site.  However, now that I have the recurrence information I wanted to parse it and create individual days for the recurrence events.  The problem is that the XML format for recurrence data does not seem to apply in all cases.

In normal records I see xml:

<recurrence><rule><firstDayOfWeek>su</firstDayOfWeek><repeat><weekly mo="TRUE" tu="TRUE" we="TRUE" th="TRUE" fr="TRUE" weekFrequency="1" /></repeat><windowEnd>2011-05-06T23:59:00Z</windowEnd></rule></recurrence>

In other records I see plain text:

Every 1 day(s)
Every 1 week(s) on: Monday

My QueryOptions section of the web services call is as follows.  Does anyone know why there are multiple formats for the recurrence data even though I specify V3 format?

Dim MyQueryOptions As XmlNode = MyQuery.CreateElement("QueryOptions")
MyQueryOptions.InnerText = _"<RecurrencePatternXMLVersion>v3</RecurrencePatternXMLVersion>" & _"<ExpandRecurrence>TRUE</ExpandRecurrence>" & _"<CalendarDate>" & _"   <Today />" & _"</CalendarDate> " & _"<ViewAttributesScope='RecursiveAll' />"


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>