locked
Call CRM function in external website RRS feed

  • Question

  • Hi, Is there a way to call a CRM function in a javascript of an external solution. I tried window.opener.functionName(), window.opener.document.functionName()..but that doesn't work.
    Friday, June 5, 2009 6:28 PM

Answers

  • In order to avoid cross domain issues you'll need to pass the crm window to the external (popup) window and activate the function from the popup.

    this should look similar to the following code:

    //Crm window
    var w = window.open( 'externalurl.html', 'window name' , '');
    w.opener = window;

    //Popup window
    opener.functionName();

    What i'm really doing is filling the popup opener object myself.

    Blog: http://mscrm4ever.blogspot.com/ * Website: http://gicrm.upsite.co.il/
    Friday, June 5, 2009 8:16 PM