Last month I posted about creating workflows to re-open activities. This month I’m writing about a quick and dirty way to do the same thing but using JavaScript.
1. Open the closed activity that you want to re-open.
2. In the URL field of the browser, enter the following text:
javascript: var form = $(“iframe”).filter(function () { return ($(this).css(‘visibility’) == ‘visible’) })[0].contentWindow;form.Mscrm.CommandBarActions.activate(form.Xrm.Page.data.entity.getId(), form.Xrm.Page.data.entity.getEntityName());
3. Before hitting ‘Enter’ check to make sure “javascript:” wasn’t stripped from the beginning of the text. You can manually type it back in.
4. Hit ‘Enter’ and the activity will automatically update to be open. So cool!