One of the most common asks is to show ribbon buttons to only be shown when at least 1 record in Dynamics 365 ribbon button are selected.
Here’s how you can do it –
Enable Rule in Ribbon Workbench
This can be achieved using Enable Rule for the button you wish to show on selection using Ribbon Workbench.
Let’s say your button ‘Promote’ (in this case) is on the Main View of the Account entity. You can add the following Enable Rule to the command –
And in the actual Enable Rule, you can select the SelectionCountRule to make this happen. You can set the minimum value to 1 so that it appears when at least 1 record is selected.
Result
Now, if you see – By default, the button is hidden –
Now, as you can see, only when at least 1 record from the view is selected, the button is visible.
In case you are looking to hide a custom button, check this post – Hide Custom Ribbon Button [Easy Way] – Ribbon Workbench
Hope this helps!!
[…] Show Ribbon button only on record selection in Dynamics CRM […]
LikeLike
[…] Show Ribbon button only on record selection in Dynamics CRM […]
LikeLike