Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Suggested answer

Show only first record in a view

Posted on by

Hi everyone,

i need to show only the first record in a custom view. The idea is when the record change the state (custom field),  for example from open to closed, the view should show the next one.

Is there any way to do this?

Thank for reading.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Show only first record in a view

    Hi Tomas.A,

    You can use top 1 in your fetchxml.

    Tip #738: Use top in fetchxml | Power Platform & Dynamics CRM Tip Of The Day

    Unfortunately, you can't specify it for the views just like that, but you might use FetchXML Builder, which is one tool of XrmToolbox

    Download XRM ToolBox. https://www.xrmtoolbox.com/

    Or you might probably just add your entity/view to a new solution, export it, update the query in the customizations.xml file, and import it back.

    Firstly, you need create a system view that is sorted by createdon aescending and then publish the entity, the query will return multiple records, and the earliest  recently created one will be at the top.

    pastedimage1637301200368v1.png

    pastedimage1637301248247v2.png

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans