web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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

I have the same question (0)
  • David Jennaway Profile Picture
    14,065 on at

    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

  • bravoss Profile Picture
    155 on at

    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 ?

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    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
    155 on at

    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...

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans