I have created custom buttons using the Command Bar designer. How do I hide certain buttons from certain security roles using the PowerFx formulas?
I have tried using the Ribbon Workbench XRM tool but when I load the solutions, these custom buttons are not showing in RIbbon Workbench.
So I guess my only option is to use PowerFx formulas on the Command Bar designer to hide buttons depending on the user's role. Can anyone help me work out how to get the user's security roles and hide the button from them?
There are permissions support for this in preview (Permissions support in DataSourceInfo and (new) RecordInfo functions for Dataverse | Microsoft Power...), which did not work well months ago, but probably worth trying again. Examples to try in the visible property of the command bar:
For a table:
For a particular record
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
169 | |
94 | |
68 | |
64 | |
61 |
User | Count |
---|---|
223 | |
160 | |
95 | |
85 | |
80 |