Problem:
In Dynamics 365 I have one custom entity say CustomEntity. In that entity's Home Grid Page (List View page, where we get Active/Inactive and so on views) and in entity's form I have added one custom ribbon button, say CustomRibbon. Now, that ribbon button should be visible to users having specific security role, say CSR Admin. How to achieve this ?
What I have tried:
Added custom js (for checking particular Role) in EnableRule for CustomRibbon button. It is working fine for form but not for Grid/List View page of the entity. Reason - js Library is not loading in Grid/List view.
I have also tried callling dummy function for the library and try to call it (so that js webreource can be loaded) on Enable rule, but still it is not working.
*This post is locked for comments