Tip #88: SharePoint 2010 Content Organizer execution order

Rate this item
(1 Vote)

 SharePoint 2010 introduced a new feature "Content Organizer" to organize your content automatically, based on custom-defined rules. However, these rules add new entity to the hierarchy of events that can be executed for the List items, and this execution order is not well documented. It's important to understand the sequence to process documents accordingly.

For example, when the user uploads his CV to the library you want to add watermark by Workflow, update .docx metadata with event receiver and round document to "unprocessed" folder using content organizer. We have "DropOff Library" with WorkFlow, EventReceiver attached and with Content Rules. The default execution sequence will be the following:

  1. WorkFlow
  2. Event-Receiver
  3. Content Organizer Routing Rules

PS: Take into account that WF/EventReceiver sequence can be changed programmaticaly, using Sequence property of SPList.EventReceivers, but when you reconfigure Workflow it always gets the first order in execution

PPS: Content Organizer Routing Rules impersonates the Application Pool account, thus in might perform actions under "System Account" and your destination folder's WorkFlow will not start.

 

Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.