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

Can the ItemAdding event be used in a Sandbox?

I need to perform a task when a Item is a added/adding, it has to be synchronous (item added is async so i cant use that).

If i cant use the ItemAdding what other options do i have?

share|improve this question
up vote 3 down vote accepted

Yes, it is possible (see here too, however you would need to be aware of some tips, such as:

  • make sure you don't use any RunsAsPrivilegedUser
  • debugging always by attaching to SPUCWorkerProcess
share|improve this answer

I don't know the answer about using ItemAdding in Sandbox (although my guess would be yes), but another option you have is to change ItemAdded to be synchronous.

Here are a couple posts about that:

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.