locked
Custom Search Dialog returns no results in CRM 2015 RRS feed

  • Question

  • We've recently upgrade from CRM 2011 to CRM 2015.  A Silverlight component (I know but we're stuck with it) has a section in it which displays a CRM search dialog.  Since the upgrade the dialog doesn't return any data?

    string lookupString = SilverlightUtility.GetServerBaseUrl().ToString();
    int competitorID = Convert.ToInt32((double)HtmlPage.Window.Eval("window.parent.GetObjectTypeCode('competitor')"));
    lookupString += "/_controls/lookup/lookupinfo.aspx?AllowFilterOff=1&DefaultType=" + competitorID + "&DefaultViewId=%7b3BF5B939-6D58-477C-B903-95C43F1EDA56%7d&DisableQuickFind=0&DisableViewPicker=0&LookupStyle=single&ShowNewButton=1&ShowPropButton=1&browse=0&currentid=%7b77C1B4E8-9FEB-E111-A81A-00155D1434D0%7d&objecttypes=" + competitorID;
    dynamic ReturnedParams = HtmlPage.Window.Invoke("showModalDialog", lookupString, null, "dialogWidth:800px;dialogHeight:900px");

    if (ReturnedParams == null)
    {
       HtmlPage.Window.Alert("ReturnedParams == null");  -- ALLWAYS GETS TO HERE
    }
    else
    {
       HtmlPage.Window.Alert("ReturnedParams IS NOT NULL");
    }

    Does anyone know how to fix this? 
    Wednesday, June 15, 2016 2:44 PM