Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : 7ZKQ/w9Ig8rlwWjKZlE7fI
Customer experience | Sales, Customer Insights,...
Suggested answer

RibbonWorkBench: ValueRule on statuscode does not work

Like (0) ShareShare
ReportReport
Posted on 11 Dec 2020 08:45:05 by

Hi,

i would like to show a custom button only for statuscode = 2 (inactive).


In order to achieve this, i added this valuerule:

pastedimage1607676232494v1.png

But it doesnt work.

Can you help?

Thanks

Juliane

  • Juliane Bock Profile Picture
    on 11 Dec 2020 at 13:40:55
    RE: RibbonWorkBench: ValueRule on statuscode does not work

    Hi Ankit,

    thanks for your reply.

    I used a ValueRule but it is not working:

       <EnableRule Id="infy.entityname.EnableRule5.EnableRule">

                 <ValueRule Field="statuscode" Value="2" InvertResult="false" />

               </EnableRule>

    I am not sure what i do wrong here.

    Thanks

    Juliane

  • Suggested answer
    Anks27 Profile Picture
    1,083 on 11 Dec 2020 at 13:34:12
    RE: RibbonWorkBench: ValueRule on statuscode does not work

    Hello,

    Please refer the link below. The example shown is for enable rule but it will work for display rule too.

    https://ribbonworkbench.uservoice.com/knowledgebase/articles/121427-enable-disable-a-ribbon-button-dynamically-based-o

    Signed, Sealed and Delivered.

    Don't forget to help the community by Verifying the answer and Like it if your question has been answered. It will let others know that the topic has verified answer.

     

    Thanks & Regards,

    Ankit Shah(MCT-Microsoft Certified Trainer || Dynamics 365/Business Development Manager)

     

    Follow/Connect 101 on below

    LinkedIn:-   https://linkedin.com/in/dynamicpower101/

    Twitter:-     https://twitter.com/Dynamicpower101

    Facebook:- https://facebook.com/DynamicPower101/

    Telegram:- https://t.me/dynamicpower101

    Medium:-   https://medium.com/dynamicpower101

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 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,206 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,968 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading started