Firing a dialogue from an event In Microsoft Dynamics V4 it was possible to fire a workflow from an event or isv button and with the arrival of dialogues, I thought it would be neat to be able to trigger dialogues from an event (either onload, onsave or onchange of a tab or field). Here’s how it’s done in Microsoft Dynamics CRM2011. The following example fires a dialogue when a record is modified. This could easily be modified to fire in different form scenarios or on evaluating a particular field using the ‘if’ condition. Create a web resource of type JScript and add the following code: function FireDialogue() {           var CRM_FORM_TYPE_CREATE = 1;      var CRM_FORM_TYPE_UPDATE = 2;      var sUrl = "";     var crmFromType = Xrm.Page.ui.getFormType();     if(crmFromType == CRM_FORM_TYPE_UPDATE)      {          var _ ...