Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : WZ1TQjBP8K4B8DjVWvezpk
Service | Customer Service, Contact Center, Fie...
Answered

Sort by view - Related account column

Like (1) ShareShare
ReportReport
Posted on 14 Jun 2021 17:46:03 by 260

Evening all, hope you are all well.

I'm trying to configure sorting of a view we have in Dynamics but the option/column doesn't seem to be showing.

The column in question is a related account field that I added but it fails to show - 

Column on the right:

pastedimage1623692500231v1.png

Options available:

pastedimage1623692572954v2.png

Is this something that I'm doing wrong or is it not supported?

If it's not supported is there another way to add this in?

Thanks in advance!

Sam

  • Suggested answer
    Charan Raju C R Profile Picture
    7 Moderator on 15 Jun 2021 at 08:19:29
    RE: Sort by view - Related account column

    Hi Sam,

    This can be achieved by editing view XML. Please check the below steps.

    1. Create a solution and add your view (Active Cases)

    2. Export the solution and open customizations.xml file

    3. Look for <fetchxml> and move <order> tag inside <link-entity> of Account

    4. Change attribute property in <order> tag to Customer Type field's logical name

    5. Save the XML file and zip it along with other two XML files

    6. Import and publish Case entity

  • Verified answer
    Community Member Profile Picture
    on 15 Jun 2021 at 06:43:08
    RE: Sort by view - Related account column

    Hi Sam,

    As screenshot that you provided shown, we can configure the sort but the sorting is available only for the columns which are a part of the entity on which the view is created, can't select any fields from related entity though you have added it to the view.

     pastedimage1623737976032v1.png

    Maybe you can go to the view to sort it by the column you need manually.

     pastedimage1623739383080v2.png

    Or you can try to use the view designer and Fetch Xml builder tools from the XRM Toolbox, which can sort by related column as default.

    You can refer following link:

    (+) Sort on Related Column in a View - Microsoft Dynamics CRM Community

    Note:

    (1) Download XRM ToolBox. https://www.xrmtoolbox.com/

    (2) Once you have downloaded and installed it, then connect to you crm environment.

    Insert organization url and passward, you can connect successfully.

    Or using SDK Login Control and next Office 365 sign-in.

    https://community.dynamics.com/365/customerservice/f/dynamics-365-for-customer-service-forum/420526/xrm-tool-box-to-dynamics-crm-connection

    (3) Go library to install tools(view designer and Fetch Xml builder)

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on 14 Jun 2021 at 20:42:51
    RE: Sort by view - Related account column

    Hello Sam,

    As far as I know, you won't be able to sort based on the data from the related entity. You can sort only based on the fields of the "primary" entity.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,378 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,532 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading complete