SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to make a list where you can book one or more resources and it should not be possible to book the same resource twice in the same timespan.

How can this be done?

Any suggestions apart from adding third party solutions...? Would like to make my own...

share|improve this question

You might want to look at the template that was designed in the Fantastic 40 for booking meeting rooms. I would not use this template in production, but you could install it and play with it in a dev environment and utilize elements of it for your project.

share|improve this answer
Too bad it's only for 2007 (Upgrade process looks a bit confusing and it's not worthwhile) – Vedran Rasol Jul 29 '11 at 11:48

You need to create EventReceivers for ItemAdding and ItemUpdating.

In these events, run query to check the given Start and End DateTime are not overlapping to any item already in the list. This can be achieved by CAML query using DateRangesOverlap and ExpandRecurrence properties.

Please check the following link for a code example:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.