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
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).
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156