我想根據我使用元數據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個實體是內部只使用它可以解釋爲什麼我得到一個錯誤(說我可以閱讀其他「僅供內部使用」的實體)。
所以我的問題是:我如何從元數據中檢測哪些實體是「僅供內部使用」,哪些不是? 當然,我可以根據文檔硬編碼實體列表,但我不覺得它非常令人滿意。
我對CRM 2011有同樣的問題。你有沒有找到一種方法來確定'僅限內部使用'字段? –
供參考:我發佈了一個類似的問題[MS板](http://social.microsoft.com/Forums/en-US/crmdevelopment/thread/09ce091b-fcee-4c25-8012-6e543124498c/??prof=required)並得到了一些可能有助於一些人的迴應。 –