CRM 2011 + Control Dialog cancel and finish button RRS feed

  • Question

  • Hi All,

    I have written a dialog and called the dialog using javascript. After calling written some update functionality. My problem is, even after dialog gets cancelled code written after that gets executes.

    Need help !!!

    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Thanks and Regards, Yogesh Vijay Mulay

    Monday, March 24, 2014 9:29 AM

All replies

  • Unfortunately, I don't think there is a way to identify directly which button was pressed on the Dialog.

    Instead, I think your only option would be to identify the result of the dialog from data in CRM, which you could retrieve via the CRM REST endpoint. The simplest option would probably be to set a flag field within the Dialog logic; this field would only be set if the dialog was not cancelled. Another option could be to identify the asyncoperation record that was associated with this instance of the dialog, and check the state or status fields

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Monday, March 24, 2014 3:03 PM