I have a list with 2x declarative approval workflows associated with it (the workflows themselves are copies of the OOTB Approval workflow and were built in SharePoint Designer 2010).
FYI: The items in my list go to a department for initial approval, and once they're approved they get routed to a second department for additional approval (i.e. the approvals happen in serial).
Workflow #1 is kicked off programmatically in my list's
ItemAdded event, and I was hoping to kick off workflow #2 in the
ItemUpdating event by checking if workflow #1's status column had just been set to Complete or Approved.
My problem however is that the
ItemUpdating event does not seem to fire when workflow #1 is approved (even though the auto-added workflow status column on my list is updated to Approved).
FYI: I confirmed this by outputting trace messages to the ULS logs at the start of the event. These messages appear when editing the list items manually, but not when the workflow status changes.
Does anyone know how I can programmatically determine when a workflow status column is updated (preferably using the list's event receiver) so that I might manually start a second workflow?