Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, PowerApps, Microsoft Flow, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates to Dynamics 365Release overview guides and videos Release Plan | Early Access Availability
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
I have added a display rule (via ribbon workbench) to a command bar button in Dynamics 365, however this does not appear to be working correctly when accessing the system, as users without the required entity privilege are still able to see the button.
I have checked that the xml being generated (pasted below) and I think this appears correct however the issue remains - the button still displays for a user who does not have any delete permissions on the entity, via either his own security roles or membership of a team.
Is there an issue with Display Rules not working correctly in Dynamics 365? Other customisations (e.g. hiding a button entirely) work as expected for me, just not the display rules. I have tested this in both Chrome and Edge with the same results.
xml being generated:
<DisplayRules> <DisplayRule Id="crimson.cdi_emailsend.DisplayRule0.DisplayRule"> <EntityPrivilegeRule PrivilegeType="Delete" PrivilegeDepth="Global" AppliesTo="PrimaryEntity" EntityName="cdi_emailsend" Default="false" InvertResult="false" /> </DisplayRule> </DisplayRules>
Am I missing something? I have successfully used display rules several times before without issue and am struggling to see why this is not working in Dynamics 365 (online).
For clarity, the display rule is associated with the button's command, rather than the button itself.
Please use Enable Rule instead. Display rules worked well on old ribbons but new ribbon workbench seems to have some issue. Use Enable Rule !
Can you try enable rules?
Please mark as verified if this helped
Hi Becky Carr,
Try without default and invertresult value
<EntityPrivilegeRule PrivilegeType="Delete" PrivilegeDepth="Global" AppliesTo="PrimaryEntity" />
Business Applications communities