locked
Custom button not working Offline RRS feed

  • Question

  • Hello everybody,

    I'm having some problems with the url of a custom button. When I'm accessing from web browser (Online) the button is launching the correct url (it create a new record) but when I'm working Offline (Outlook) it's not finding the url.

    I tried this code:

    function LaunchUrl() {
    
    var guid = Xrm.Page.data.entity.getId();
    guid = guid.replace("{", "");
    guid = guid.replace("}", "");
    
    
    if(Xrm.Page.context.isOutlookClient())
    {
     if(Xrm.Page.context.isOutlookOnline())
     {
     var url = " crm Online "+guid +" ... ";
     }
     else
     {
     var url = "http://localhost:2525/main.aspx</a>+guid+"...";
     }
    }
    else
    {
     var url = " crm Online "+guid +" ...";
    }
    
    window.open(url);
    }
    


    Any suggestions is highly appreciated!

    Many thanks



    Tuesday, August 30, 2011 9:12 AM

Answers

  • Working Offline would mean another machine, hence LOCALHOST will only work on the server machine. Replace localhost with the server name.
    Monday, September 26, 2011 3:35 PM