SharePoint CSOM SmartObjects Calendar item recurrence data
KB001306
PRODUCT
To enable item recurrence on a SharePoint calendar, a user needs to enter an XML string containing the information describing the recurrence in the Recurrence property on the SmartObject. The XML in the Recurrence property field gets passed to the ReccurenceData field in SharePoint.
The table below shows examples of Recurrence property values.
Recurrence type | RecurrenceData field value |
---|---|
Daily every 1 days, no end date | <recurrence><rule> <firstDayOfWeek>su</firstDayOfWeek> <repeat><daily dayFrequency="1" /></repeat> <repeatForever>FALSE</repeatForever> </rule></recurrence> |
Weekly every Monday, Tuesday, and Wednesday, end by 5/31/2007 | <recurrence><rule> <firstDayOfWeek>su</firstDayOfWeek> <repeat><weekly mo="TRUE" tu="TRUE" we="TRUE" weekFrequency="1" /></repeat> <windowEnd>2007-05-31T22:00:00Z</windowEnd> </rule></recurrence> |
Monthly the third Wednesday of every 2 months, no end date | <recurrence><rule> <firstDayOfWeek>su</firstDayOfWeek> <repeat><monthlyByDay we="TRUE" weekdayOfMonth="third" monthFrequency="2" /></repeat> <repeatForever>FALSE</repeatForever> </rule></recurrence> |
Yearly every May 18, end after 10 instances | <recurrence><rule> <firstDayOfWeek>su</firstDayOfWeek> <repeat><yearly yearFrequency="1" month="5" day="18" /></repeat> <repeatInstances>10</repeatInstances> </rule></recurrence> |
For a more extensive explanation: http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?PageType=4&ListId=%7b72C1C85B-1D2D-4A4A-90DE-CA74A7808184%7d&pID=761
Also see the topics in the K2 blackpearl online help concerning registering the SharePoint CSOM service instances: http://help.k2.com/helppages/k2blackpearlUserGuide4.6.2/The_K2_SharePoint_CSOM_Service_Content.html