locked
How to run a Windows Application from CRM2011 RRS feed

  • Question

  • We are running CRM 2011 on premise.  We want to run an windows application from the Ribbon or sidebar.  We want to run Access 2010.   If possible does Access 2010 need to be installed on each local computer or can it run Access 2010 from the network server (which is preferred)?

    I would need to complete steps on how to update the Ribbon or sidebar, etc.  Wht this is about, there are some Access 2010 reports we would like to be available to the CRM users.

    Thank you

    Russ


    Russ

    Wednesday, August 13, 2014 5:14 PM

All replies

  • So you want to use the Ribbon Workbench on Codeplex to make your button in the app.  Once you do that, you will need JavaScript like below to call to an external desktop app.  Note, this requires Internet Explorer only, at it uses ActiveX.  To my knowledge, there is no supportable way to do this from Firefox or Chrome.

    <script>
    function LaunchApp() {
     if (!document.all) {
     alert ("Available only with Internet Explorer.");
     return;
     }
     var ws = new ActiveXObject("WScript.Shell");
     ws.Exec("C:\\Path\\To\\File\\program.exe");
    }
    </script>

    Just update that script with your local executable path.  Be aware, you will have to have Access installed on every machine, and in the exact same place for that to work


    The postings on this site are solely my own and do not represent or constitute Hitachi Solutions' positions, views, strategies or opinions.

    Wednesday, August 13, 2014 8:48 PM
  • That all sounds good.  I do have one last question.  I have not create or added a button to CRM.  Is there "Detailed" instructions somewhere on how to do that?

    Thanks

    Russ


    Russ

    Wednesday, August 13, 2014 10:31 PM
  • The Ribbon Workbench tool makes it pretty simple, and there are instructional documentation on the download site.  Learning it from the XML level won't be super-relevant.

    The postings on this site are solely my own and do not represent or constitute Hitachi Solutions' positions, views, strategies or opinions.

    Wednesday, August 13, 2014 10:58 PM
  • So you want to use the Ribbon Workbench on Codeplex to make your button in the app.  Once you do that, you will need JavaScript like below to call to an external desktop app.  Note, this requires Internet Explorer only, at it uses ActiveX.  To my knowledge, there is no supportable way to do this from Firefox or Chrome.

    <script>
    function LaunchApp() {
     if (!document.all) {
     alert ("Available only with Internet Explorer.");
     return;
     }
     var ws = new ActiveXObject("WScript.Shell");
     ws.Exec("C:\\Path\\To\\File\\program.exe");
    }
    </script>

    Just update that script with your local executable path.  Be aware, you will have to have Access installed on every machine, and in the exact same place for that to work


    The postings on this site are solely my own and do not represent or constitute Hitachi Solutions' positions, views, strategies or opinions.

    Normally this approach requires also a change inside the Internet Explorer security settings. Allowing a browser to run exe files is often a not good idea.

    My blog: www.crmanswers.net - Rockstar 365 Profile

    Thursday, August 14, 2014 3:55 AM
  • Agreed, but if it is a requirement, it's requirement.

    The postings on this site are solely my own and do not represent or constitute Hitachi Solutions' positions, views, strategies or opinions.

    Thursday, August 14, 2014 5:34 AM