locked
How to close the crm form using Plugin. RRS feed

  • Question

  • Hi ,

    can anyone know how to close the crm form from plugin.

    or

    how to execute a function in javascript after saving the record. This function should call automatically after save of the record. 

    Any help is appreciable.

    Friday, July 25, 2014 1:41 PM

All replies

  • Hi,

    You can't close entity form using plugin code.

    if you want to execute your code when user will hit save button you can write your code on OnSave event and if want you can capture specific save event arguments and there you can write code.


    Our Website| Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    • Proposed as answer by Nicksoft2011 Friday, December 5, 2014 8:18 PM
    Friday, July 25, 2014 1:46 PM
    Moderator
  • Mahender,

     that's good point. but when we wants to trigger something on Account form when its contact get added from account page, how do we trigger javascript for that event?? can you assist on that??

    Thanks,

    Nick

    • Proposed as answer by Nicksoft2011 Friday, December 5, 2014 8:18 PM
    Friday, July 25, 2014 3:37 PM
  • Hi Nick:

    You can always start a workflow from within a plug-in ExecuteWorkflowRequest?

     cheers

    Drew

    • Proposed as answer by Nicksoft2011 Friday, December 5, 2014 8:18 PM
    Friday, July 25, 2014 4:48 PM