locked
[CRM 4] How to run a plugin on Cancel of an Appointment? RRS feed

  • Question

  • Hi

    I'm trying to create a plugin that will fire when something changes on an Appointment. Unfortunately I'm unable to capture the closing of one, be it as completed or cancelled.

    My plugin is registered on the Book and Reschedule messages. I thought, that closing and opening an Appointment would be handled by a SetState message, but it does not seem to be so - it does not seem to be triggered by it at all.

    What message should I use to capture this event?

    Regards

    Grzegorz Zych

    Thursday, November 21, 2013 3:11 PM

Answers

  • Hi,

    Try to register SetState and SetStateDynamicEntity both messages and see it works.



    Hope this helps. If you get answer of your question, please mark the response as an answer and vote as helpful !
    Vikram !

    • Marked as answer by Grzegorz Zych Thursday, November 21, 2013 3:38 PM
    Thursday, November 21, 2013 3:23 PM

All replies

  • Hi,

    Try to register SetState and SetStateDynamicEntity both messages and see it works.



    Hope this helps. If you get answer of your question, please mark the response as an answer and vote as helpful !
    Vikram !

    • Marked as answer by Grzegorz Zych Thursday, November 21, 2013 3:38 PM
    Thursday, November 21, 2013 3:23 PM
  • It worked. Thank you very much.
    Thursday, November 21, 2013 3:37 PM