Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Custom view does not open records

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have this strange problem where the custom view I created does not open records. When the form returns the records, if you attempt to click on any row it redirects to the create new form. Anyone know why the view is behaving this way?

Here is my query in case anyone is curious:

<fetchxml>
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" >
<entity name="account" >
<attribute name="name" />
<attribute name="new_facebook" />
<order descending="false" attribute="name" />
<link-entity name="annotation" alias="ao" to="accountid" from="objectid" />
<filter type="and" >
<condition attribute="statuscode" operator="eq" value="1" />
<filter type="or" >
<condition attribute="new_facebook" operator="not-null" />
<condition entityname="ao" attribute="notetext" operator="like" value="%WEB%%" />
</filter>
</filter>
</entity>
</fetch>
</fetchxml>

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Custom view does not open records

    Thank you! That solved the problem.

  • Verified answer
    David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: Custom view does not open records

    You need to include the primary key attribute in the attribute list. Try:

    <fetchxml>
     <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" >
     <entity name="account" >
     <attribute name="accountid" />
     <attribute name="name" />
     <attribute name="new_facebook" />
     <order descending="false" attribute="name" />
     <link-entity name="annotation" alias="ao" to="accountid" from="objectid" />
     <filter type="and" >
     <condition attribute="statuscode" operator="eq" value="1" />
     <filter type="or" >
     <condition attribute="new_facebook" operator="not-null" />
     <condition entityname="ao" attribute="notetext" operator="like" value="%WEB%%" />
     </filter>
     </filter>
     </entity>
     </fetch>
     </fetchxml>


Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,399 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans