Sandboxed WorkflowCompleted event receivers RRS feed

  • Question

  • Hi.

    I need to develop the event receivers for 2010 server sandboxed solution. I added event receiver to my sandboxed project, attached it to libraries based on 101 template <Receivers ListTemplateId="101">. I left only default code in receivers 

     public override void WorkflowCompleted(SPWorkflowEventProperties properties)

    but the breakpoint on it doesn't fire. I attached debugger to all sandboxed worker processes, owstimer manually, it didn't help.

    I looked at associated event receivers of the library in SharePoint Manager - everything is OK, they're attached to the library.

    Then I tried another sandboxed event reciever - itemupdated/itemupdating - everything fired and worked fine. Also I tried to make the WF event receiver as a farm solution - it began to work. But I need only sandboxed solution.

    Is it possible to make sandboxed solution with workflowcompleted event reciever?

    Regards, Yulia.

    Monday, August 26, 2013 12:29 PM


  • Thanks for your replies.

    I made some research and found how to solve my business problem. Problem to handle workflow completed event. I can't handle WorkflowCompleted event. By I can handle IetmAdded event for Workflow History List (Template=140). So I handle this event, check fields of workflow history item to find if workflow is completed and instance id of the workflow. Maybe it's not a good and universal way. But it works in sandbox. 

    • Proposed as answer by Aries - MSFT Friday, August 30, 2013 10:18 AM
    • Marked as answer by Qiao Wei Monday, September 2, 2013 12:43 AM
    Friday, August 30, 2013 10:16 AM

All replies