Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Custom command bar command Visibility not working

Posted on by 149

I have a custom Command with a mostly-working Visibility formula. The formula works fine when a form is first opened.

Clicking the command successfully Patches the underlying record, so that the command's Visible property should now be False. But the command remains visible. The field in question shows as changed in the Form, so the form is seeing the record update.

I have to leave the form and re-enter in order to confirm that the command is now invisible.

To fix the bug, I've tried calling PowerFX 'Refresh()' on the data source, but this does not help.

How does one get the command bar Visible formula to work properly?

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: Custom command bar command Visibility not working

    Hi Len C & AccountAccount,

    As a quick workaround, you can use a ribbon workbench for this purpose.

    Why do not you raise the ticket to Microsoft from Power Paltrfor4m admin centre?

  • AccountAccount Profile Picture
    AccountAccount 147 on at
    RE: Custom command bar command Visibility not working

    I am experiencing the same issue. At first the visibility logic was applied correctly. It was working for some time but now the button is always shown. Even with simple condition the visibility logic is not applied dynamically.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans