CRM Online 2016, executionContextObj is undefined RRS feed

  • Question

  • Hi,

    I want to use executionContextObj to identify the direction of business process stage, like executionContextObj.getEventArgs().getDirection() in javascript.  However, I kept getting "executionContextObj is undefined".  I think I've missed something.  How can I reference executionContextObj in javascript?  Thanks.

    Sunday, June 12, 2016 10:59 PM


  • Hi,

    I found the answer myself.  I have to check 'Pass execution context as the first parameter' in Handler Properties windows, then pass 'executionContextObj' as the first parameter in handler such as onLoad(executionContextObj), onChange(executionContextObj), onSave(executionContextObj), etc, as example in CRM Online.

    • Marked as answer by chicago bq Monday, June 13, 2016 9:58 PM
    Monday, June 13, 2016 9:58 PM