簡體   English   中英

如何恢復已刪除的“快速查找視圖”。 在MS Dynamics CRM中

[英]How to recover the deleted the “Quick Find View”. in MS Dynamics CRM

如果您刪除實體的快速查找視圖,如何恢復它,請按照以下說明進行操作

解:

  • 首先創建一個視圖並獲取他的GUID,保存在記事本中,然后刪除該視圖。
  • 創建一個解決方案,導入從中刪除“快速查找視圖”的所選實體,然后將其導出。 打開Customization.xml並將XML添加到以下路徑。

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>

保存文件。 上載解決方案並發布。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM