简体   繁体   中英

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

如果您删除实体的快速查找视图,如何恢复它,请按照以下说明进行操作

Solution:

  • First create a view and get his GUID, save in notepad, and delete the view.
  • Create a solution, Import the selected entity from which you deleted the “Quick Find View” and Export it. Open Customization.xml and add the XML to the following path.

XML Path : 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>

Save the file. Upload the Solution and Publish it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM