2011-10-21 20 views
3

我想根據我使用元數據webservice獲得的列表來讀取(FetchXml)所有實體的所有可讀屬性的內容。如何從Dynamics CRM元數據中檢測「僅供內部使用」實體

這工作得很好,除了3個實體(「resourcegroupexpansion」,「workflowwaitsubscription」和「interprocesslock」)爲我係統地收到以下錯誤:

<?xml version="1.0" encoding="utf-8"?> 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 
    <soap:Body> 
    <soap:Fault> 
     <faultcode>soap:Server</faultcode> 
     <faultstring>Server was unable to process request.</faultstring> 
     <detail> 
     <error> 
      <code>0x80040216</code> 
      <description>An unexpected error occurred.</description> 
      <type>Platform</type> 
     </error> 
     </detail> 
    </soap:Fault> 
    </soap:Body> 
</soap:Envelope> 

根據這一http://msdn.microsoft.com/en-us/library/gg328086.aspx的3個實體是內部只使用它可以解釋爲什麼我得到一個錯誤(說我可以閱讀其他「僅供內部使用」的實體)。

所以我的問題是:我如何從元數據中檢測哪些實體是「僅供內部使用」,哪些不是? 當然,我可以根據文檔硬編碼實體列表,但我不覺得它非常令人滿意。

+0

我對CRM 2011有同樣的問題。你有沒有找到一種方法來確定'僅限內部使用'字段? –

+1

供參考:我發佈了一個類似的問題[MS板](http://social.microsoft.com/Forums/en-US/crmdevelopment/thread/09ce091b-fcee-4c25-8012-6e543124498c/??prof=required)並得到了一些可能有助於一些人的迴應。 –

回答

0

遺憾的是,沒有標識標識「僅供內部使用」實體。

但是我從XrmToolbox元數據瀏覽器注意到的一件事 - 實體的描述欄有〜15個實體的「僅限內部使用」文本。

我們可以通過識別&更新這一領域與內部系統實體唯一值利用相同(直通像出口解決方案的一些不支持的方式,修改&重新導入)。然後可以使用描述字段文本來過濾掉這些內部實體。

我從來沒有試過這個。我會盡快更新我的答案&。

相關問題