Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Ribbon workbench multiple display rules

(0) ShareShare
ReportReport
Posted on by 54

Hi All,

I want to hide a custom button based on the status and status reason. I am using ribbon workbench to show this button if status is won or closed. Here are the conditions-

2020_2D00_11_2D00_17_5F00_20_2D00_49_2D00_40.png

To this I would like to add another condition - show this button if (status is won) or (status is closed and status reason is not closed revision). I added in the new status reason condition to the display rules above but doesn't seem to be working.

Any suggestions?

Thanks!

  • SR11 Profile Picture
    54 on at
    RE: Ribbon workbench multiple display rules

    Thank you for the detailed response.

    To give a little bit of background, I already have a rule in place that successfully enables "Custom" button when the Quote status is Won or Lost, i.e. when statecode equals 2 or 3. The screenshot of this is in the original post.

    What I am not able to do is show the button when Quote status is Won or Lost AND status reason is not Revision. I tested with just status reason (statuscode = 7) as the only condition but that did not work. I am unable to identify why that particular field is not working.

  • cloflyMao Profile Picture
    25,208 on at
    RE: Ribbon workbench multiple display rules

    Hi SR11,

    Let us take Industry field of Account as example: I want to show the button when the industry equals to the second and third option.

    1. The meaning of True/False is contrast to our understanding.

    True: hide the button.

    False: show the button.

    pastedimage1605767124913v2.png

    2. After created the "enabled rule", we need to create a command to save the "enabled rule".

    pastedimage1605767265616v3.png

    3. Finally, we need to apply the command to our custom button.

    pastedimage1605767338535v4.png

    Test:

    The button will only display when option 2 and option 3 is selected, 

    pastedimage1605767420128v5.png

    pastedimage1605767476428v6.png

    However, the button will be shown or hidden only after the record is saved.

    In addition, you could also refer to following tutorial:

    https://blog.magnetismsolutions.com/blog/adammurchison/2017/10/13/how-to-use-enable-rules-in-dynamics-365-with-the-ribbon-workbench

    Regards,

    Clofly

  • SR11 Profile Picture
    54 on at
    RE: Ribbon workbench multiple display rules

    pastedimage1605723593226v1.png

    Screenshot

  • SR11 Profile Picture
    54 on at
    RE: Ribbon workbench multiple display rules

    Hi Clofy,

    I added the conditions in enable rules but still do not see the expected results. I would like to show a button if statecode is 2 OR statecode is 3 and statuscode is not 7. Here is the screenshot-

    What am I doing wrong?

  • Suggested answer
    cloflyMao Profile Picture
    25,208 on at
    RE: Ribbon workbench multiple display rules

    Hi SR11,

    If you want to use custom rules, you should use "Enable rules" instead, because it is more like "client side" rules, while display rules are more like "server side" rules.

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/247872/ribbon-enable-rules-display-rules

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/286323/difference-between-display-and-enable-rules

    Regards,

    Clofly

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 91

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 78 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans