.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

SPListItem "Start Time" for recurring events when building a task reminder Timer job.

Posted By:      Posted Date: October 13, 2010    Points: 0   Category :SharePoint

I have a timer job that looks at maintenance events (calendar list) planned 5 days in the future and moves them to the current todo list. It then marks that maintenance item as copied so it is not double copied to the current todo list.

This works good for single event maintenance items but not for routine or recurring maintenance items. The reason is the recurring events have a "start time" of the first event so after the first one gets moved the rest are all interpreted as being in the past, since (I think) the recurring events start time is generated as an offset of the original event at runtime. How would I get a collection of ALL the Event items that are 5 days out (single and recurring) within a timer job.




Expanded recurrence items cannot be updated

View Complete Post

More Related Resource Links

SharePoint Recurring Events

I must be a dummy, but can't figure this out.  I am setting up a recurring event such as shown below in SharePoint WSS 3.0: Delivery Date - 11/10/2010; Start Time - 2 PM; End Time - 3 PM; Recurrence - Make this a repeating event; Pattern - Monthly and "The second Wednesday of every 1 month"; Date Range - Start Date of 11/10/2010; and End after 10 Occurrences. In the calendar, the event shows up on 11/10/2010, and in the data sheet view it has an end 8/10/2011.  There are no entries being shown in the calendar for any month other than Aug 2010. I wanted it to show up every month in the calendar between Nov 2010 and Aug 2011 at 2 PM on the second Wednesday.  What am I doing wrong?  

Any way to filter group or limit the view with recurring events??

It seems that recurring events (in Events view) cause greatlimitations in the views available. For example filtering or groupingon the start date of events does not work.I tried to use a calculated column that makes a 'Start Date' of theStart Time in order to filter on it, but the result is that only thefirst date of a series of a recurring task is shown, which of courseis useless.It seems that the Calendar view is the only way to limit views in day/week/etc.Did anyone else come up with an acceptable way to group or filterrecurring events?  Specifically filtering these recurring events by Week and Month.

Custom SSIS task inteface building issue


Hi all,

I'm tying to use the class foundation that SSIS provides to build interfaces like those of built in tasks

I tried to follow this tutorial


I added a Display text property to my task in order to display it when the task is fired, every thing goes well

except three  issues

1. The display value is not persisted( when I change it from the GUI inteface. It is only persisted if it is updated from the BIDS properties grid)

2. The buttons OK, Cancel, Help are not displayed at the buttom of the interface such in the rest of built in tasks, should I add them programmatically and  if it is the case how  do I to persist properties values when user clicks OK.

3. Some cells in the properties grid shows a combo box like those configuring  connection managers. For example one can expand the combo box and selects <New Connection...>  

Or when one property grid cell get the focus then ellipses button appears when he/she clicks then the OpenDialogResult opens up

Or if one selects some properties grid cells then the properties grid changes by

Get Today's Events from A Calendar That Contains Multi-Day Events as Well as Recurring Events


I'm having trouble getting a list of today's events from a default calendar.

I've tried the following two CAML queries:

 <FieldRef Name=\"EventDate\" />
 <FieldRef Name=\"EndDate\" />
 <FieldRef Name=\"RecurrenceID\" />
 <Value Type=\"DateTime\"><Month /></Value>

Which resulted in the following Exception:

    One or more field types are not installed properly. Go to the list settings page to delete these fields.0x81020014

The calendar list is a default calendar list ie. no additional fields and no changes to the Eve

Updating SPListItem fields in a timer job



I've created and registered an SPJobDefinition and what it does is that it runs through some list items on all sites and does some cleanup. On these lists there is a field called Last Run and I update these field with a timestamp... or at least I thought I did :-) When I step through the debugger it works, but when I don't the field never gets updated...

The proceedure is this:

  1. Checkout the file in the document library
  2. Overwriting the file with a newer version
  3. Update the file's item field Last Run using this code:
file.Item["Last Run"] = DateTime.Now.ToString("ddddd, MMMM dd, yyyy hh:mm:ss tt");

4. Checkin the file

5. Run file.Update()

Any idea why this works when I step through the code, but doesn't otherwise?



Problem quering calendar list with recurring events


Hi guys,

I need to get all events from a list which are overlap with a range of time (StartDateTime - EndDateTime).

The problem is that recurring events has EventDate as the first day of recurence and EndDate 30 years later so absolutly all ranges of time get into any recurring period.

Is there a way to fix it?

Filter recurring events in Sharepoint

I have seen many people with the same problem but with no solution.

I am trying to show only the Calender events for the next 7 days, but creating a custom field and setting it to the Start Time and then filtering it doesnt work for recurring events since the recurring events are really only stored as one record ...

Any help will be appreciated.


Filter recurring Events


Has the capability to filter recurring events been added for sharepoint 2010? If so, does the Current Events view now work correctly for recurring events?

over due task email reminder



This should be a very simple question. I am using the out-of-box "approval process" in my workflow in SPD 2010, and there is a  "When a Task Expires" section in "Change the behaviour of a single task", which will send the reminder email to user. My problem is that I don't know how to trigger this action. I mean I set the "Due Date for Task Process" and the duration per task to 1 day, but I still not recieve any email when it past the due date.


How to get the Task (SPListItem) in the OnTaskCreated activity?



How to get the Task ( as SPListItem object) in the OnTaskCreated activity. The taskId used when creating the task isn't the uniqueId of the Task so using it in the


 _workflowProperties.TaskList.GetItemByUniqueId(Guid taskId)


 won't give me the SpListItem i need. The final gol is to set user permissions to the task.




How To Store Task Start Time and Task End Time in log table using SSIS?


Hi All,


Present my log table storing each task functionality  Same log table in that  I want store every task start time and end time also. How to implement this in ssis?





Task reminder workflow using sharepoint designer


Hi ,

I have created a workflow to remind the tasks created. The workflow is triggered when a task is created or when an item is changed in the task. The workflow stops even before the condition is achieved(my condition is the workflow keeps sending mail everyday until the task is completed.).

I used sharepoint designer to create this workflow. Is sharepoint designer the best pick for such kind of workflows. The workflow should keep running whenever an item in task is changed until the task status changes to completed.

Thx in Advance.


Building a Searchable Phone Directory with Windows SharePoint Services

I want to continue to build out the intranet site we've started in our previous articles. A standard item in every intranet is a staff/employee list. Most companies implementing Windows SharePoint Services (WSS) are large enough to have a database that contains all employees. We will use the aggregation features of SharePoint to include data from this database into our intranet.

Building a grouping Grid with GridView and ASP.NET AJAX toolkit CollapsiblePanel

I've posted an update to this post to apply on demand loading of Details data using ASP.NET AJAX PageMethods. I'm demonstrating the usage if CollapsiblePanelExtender client events on the new post. Check it out.

I admit, Matt Berseth is really inspiring me! Few days ago I pass through 2 of his great posts:

.Surrounding your Data Table and Dialog Controls with ComponentArt Styled Panels
.Building a Grouping Grid with the ASP.NET 3.5 LinqDataSource and ListView Controls
The first one is pure design tips one which I used for making good presentation of my demo here. The 2nd post is actually the idea.

Building Layered Web Applications with Microsoft ASP.NET 2.0 - Part 1

"Building Layered Web Applications" that shows you how to build N-Layer applications with Microsoft ASP.NET 2.0. These articles teach you how to design, build and use custom business objects in your web application. The target audience for this series are developers that are ready to make the switch from using SqlDataSource controls to ObjectDataSource controls with custom business objects. Experience with ASP.NET 2 and C# is necessary while some knowledge about object oriented design certainly helps. The design I am going to show you in these articles is a simplified version of a design you would use in a real world application. It doesn't feature all the necessary functionality your application needs, but instead focuses on the underlying concepts.

WCF Tutorial - Events and Callbacks

we described how to make a very simple client/server application where clients would call functions on the server through a shared interface. In this tutorial, I'm going to expand that application to allow the server to execute functions on the client by using callbacks. Essentially, this is WCF's mechanism to allow events to be raised from the server to it's connected clients.

Building a 3-Tier App with Silverlight 3, .NET RIA Services, and Azure Table Storage

Silverlight 3, .NET RIA Services, and Windows Azure Services Platform makes a 3-tier Cloud application easier to build: Silverlight 3 as presentation tier, .NET RIA services as the business logic and data access tier, and Windows Azure Table as the data storage tier. The sample application in this article demonstrates the architecture with a simple Survey application with all these technologies working together from Windows Azure.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend