2017-01-02 10 views
3

Microsoft Dynamics CRM Online 2016 Update(8.0.1.360) 新しいダッシュボードを作成し、グリッドを含むhtml Webリソースを使用しました。各レコードの詳細ページにリダイレクトするリンクがあります。私はブラウザでこれをチェックすると、正しく動作します。しかし、ダッシュボードから、私は詳細ページにリダイレクトし、次のことができないコンソールに表示されるエラーです:ダイナミックCRMのダッシュボード内の新しいWebページにリダイレクトできない

global.ashx?ver=-942172701:5 Uncaught Error: Sys.InvalidOperationException: Service Xrm.Interfaces.Services.IMostRecentlyViewedService already has an implementation 
at Function.Error.create (global.ashx?ver=-942172701:5) 
at Function.Error.invalidOperation (global.ashx?ver=-942172701:5) 
at Xrm.XrmServiceDirectory.register (global.ashx?ver=-942172701:26786) 
at Xrm.ScopedServiceDirectory.register (global.ashx?ver=-942172701:25708) 
at Xrm.ScopedServiceDirectory.register (global.ashx?ver=-942172701:25708) 
at Xrm.ScopedServiceDirectory.register (global.ashx?ver=-942172701:25708) 
at Mscrm.RecentlyViewed.initialize (main.js?ver=-942172701:1) 
at Mscrm.RecentlyViewed.endUpdate (global.ashx?ver=-942172701:5) 
at Sys._Application.endCreateComponents (global.ashx?ver=-942172701:5) 
at Sys._Application._raiseInit (global.ashx?ver=-942172701:5) . 

助けてください。 ありがとうございます。

リダイレクトする機能を以下に示します。

function openEntityRecord(guid) { 
     var randomnumber = 100000000 + Math.floor(Math.random() * 900000000); 
     var url = CRMURL + "/main.aspx?etn=people&extraqs=&histKey=" + randomnumber + "&id={" + guid + "}&newWindow=true&pagetype=entityrecord"; 
     alert(url); 
     window.location.href = url; 
     //window.open(url, "", "status=0,resizable=1,width=1000px,height=600px"); 
    } 

答えて

1

XRMは今、あなたのシナリオでは、それは次のように使用される、レコードを開くための専用の機能を提供してくれます:

function openEntityRecord(guid) { 
    Xrm.Utility.openEntityForm('people', guid); 
} 

See openEntityForm on MSDN

関連する問題