0
如果你刪除一個實體的快速查找視圖, 如何恢復它,請按照下列指示如何恢復已刪除的「快速查找視圖」。在MS Dynamics CRM中
如果你刪除一個實體的快速查找視圖, 如何恢復它,請按照下列指示如何恢復已刪除的「快速查找視圖」。在MS Dynamics CRM中
解決方案:
XML路徑:ImportExportXml/Entities/Entity/SavedQueries
<savedquery>
<IsCustomizable>1</IsCustomizable>
<CanBeDeleted>0</CanBeDeleted>
<isquickfindquery>1</isquickfindquery>
<isprivate>0</isprivate>
<isdefault>1</isdefault>
<returnedtypecode>Entitytypecode</returnedtypecode>
<savedqueryid>View Guid</savedqueryid>
<layoutxml>
<grid name="resultset" object=" Entitytypecode " jump="FieldName" select="1" icon="1" preview="1">
<row name="result" id="Entity Primary Key ">
<cell name="name" width="300" />
<cell name="createdon" width="125" />
</row>
</grid>
</layoutxml>
<querytype>4</querytype>
<fetchxml>
<fetch version="1.0" mapping="logical">
<entity name="Entity Name">
<attribute name="Entity Primary Key" />
<attribute name="name" />
<attribute name="createdon" />
<filter type="and">
<condition attribute="statecode" operator="eq" value="0" />
</filter>
<filter type="or" isquickfindfields="1">
<condition attribute="name" operator="like" value="{0}" />
</filter>
</entity>
</fetch>
</fetchxml>
<IntroducedVersion>1.0</IntroducedVersion>
<LocalizedNames>
<LocalizedName description="Quick Find Active" languagecode="1033" />
</LocalizedNames>
</savedquery>
保存文件。 上傳解決方案併發布它。
最佳實踐:先備份系統並知道如何恢復它,並且只在沙箱系統上進行開發。作爲輔助保護措施,請在開始使用系統之前導出並備份默認解決方案。通過這種方式,如果您開始在解決方案文件中嘗試更改XML,那麼您需要將原始配置作爲參考,以備需要將其部分恢復或僅恢復整個配置。 – Eccountable
在進行解決方案更改之前,我會進行備份。 很多感謝您的建議。 –
如果更改此行 0 CanBeDeleted> 轉換爲 1 CanBeDeleted> 該視圖不會被刪除 –