Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Changing the message in form Sub-grid when no records are found.

Posted on by Microsoft Employee

I have a CRM 2016 On-premise solution that has several Sub-grids (to display information from other entities) in one of the Entity forms. For example in an Employee form there would be a sub-grid that show all the related records about that Employee's payroll entries. The security is set up so that folks that are not in the direct supervisory chain cannot see that data, but otherwise have access to the entity, so the sub-grid reports "No [Related Entity] records found." This message is misleading because is suggests there are no records, when in fact there may be records, but this user just doesn't have rights to see them.

I'd like to change that to read, "No [Related Entity] records found or you are not authorized to view the records."

There are multiple Sub-Grids in the form, each displaying (or not displaying) records from related entities.

*This post is locked for comments

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Changing the message in form Sub-grid when no records are found.

    There is no supported way of doing this. You will have to use the existing text, or display it in other forms outside the subgrid (such as alert or notification).

  • TomSmelser Profile Picture
    TomSmelser 1,570 on at
    RE: Changing the message in form Sub-grid when no records are found.

    I don't think that is possible. But you can create a custom javascript call on form load to retrieve record counts or whatever details you would like then display a custom message at the top of the form.

    Here is example of retrieving data via js. Lot's of examples to be found.

    lakshmanindian.wordpress.com/.../retrieve-multiple-using-odata-in-crm-2011

    Here is example of displaying messages. I recommend form notification.

    www.powerobjects.com/.../dynamics-crm-alert-and-notification-javascript-methods

    Good Luck!

    Tom.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans