Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Visibility of Button and performance

(0) ShareShare
ReportReport
Posted on by 155

I have been using Ribbon Workbench for enabling buttons on entities and often we have a requirement to enable a certain button for a specific team. I have been using the entity privilege display rules for this in past but this requires Teams to have specific privileges which gets a bit complicated once we have more than a couple of buttons on the same entity with requirements for different teams to see different ones. I know the same visibility can also be controlled via javascript to check user roles/teams..etc but I do believe that the entity privilege method is more efficient in terms of performance of loading form. Also as a point to note the individual users have no more than 10 teams assigned to them in our application. This is why I need some other views on what you would think is the best way to control visibility of buttons in this case, i.e is it preferable to use Entity privilege or should I go for Javascript which appears more logically obvious(see clearly what it does) ? 

*This post is locked for comments

  • bravoss Profile Picture
    bravoss 155 on at
    RE: Visibility of Button and performance

    Thanks for the reply but what I am looking for is which method is more optimal when controlling visibility of a button via Ribbon Workbench and as a factor whether the control of visibility via Entity privilege involves API calls when compared to the other method of using Javascript to check Team membership which will involve an Odata call. and any other considerations...

  • Aric Levin Profile Picture
    Aric Levin 30,188 Moderator on at
    RE: Visibility of Button and performance

    If an API call is required, JS will be the fastest way to do this. Don't think you can do this directly with Ribbon Workbench. You will just have to decide whether you can call your APIs synchronously or asynchronously, which will control the amount of time it takes for the button to be displayed.

  • bravoss Profile Picture
    bravoss 155 on at
    RE: Visibility of Button and performance

    Checking Team ownership of user will need an oData API call via Javascript , would the Entity privilege check need an API call as well or is there some other smart way that Ribbon workbench does this, are you aware. If an API Call is required in one case and not in other then the one without would be faster ?

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: Visibility of Button and performance

    Overall, I doubt that performance will differ much whichever method you choose, so I'd make the choice based on how easy it will be to maintain

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February 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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans