locked
[CRM 2011] Perform Action when workflow execution is complete via JavaScript RRS feed

  • Question

  • I have a scenario which is as follows

    From the Ribbon Bar, user clicks on a button which executes a workflow, I want to refresh the entity form when the workflow has finished it's execution. Is there any way, supported or unsupported which would allow me to do this.

    Any pointers would really help.


    Please don't forget to mark the answer, if it helps. Piyush

    Tuesday, October 22, 2013 9:33 AM

Answers

  • You might be able to check the system job and keep retrieving it until it is completed...

    However a much tidier solution would be to substitute the workflow for a plugin. Simply add a new hidden 'two options' field to your form and have the ribbon button javascript set that field and save the form. Plugin fires on change of that field and performs your logic. Form reloads naturally after the save event (and after the plugin) and all is well.


    If my response helped you find your answer please show your thanks by taking the time to "Mark As Answer" and "Vote As Helpful".

    Twitter LinkedIn Facebook Blog Magnetism


    Wednesday, October 23, 2013 6:52 AM