Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Ribbon Workbench – Custom Smart Buttons

Posted on by 100

Hi,

I’ve been testing out custom Smart Buttons for Ribbon Workbench, and I’ve managed to create a couple of Smart Buttons that fit my requirements; however, I have some questions that I can’t seem to find any info on.

  1. Is it possible to add a Smart Button which does not have a CommandDefinition?
    Simply setting it to null seems to cause issues with undefined properties (Id etc.).
     
  2. Is it possible to add a Command without a control?
     
  3. Is it possible to set default values for the editableProperties, which is then displayed when adding the Smart Button?
    Setting “Value” does not seem to do anything in my case.
     
  4. Are there any examples for creating custom Smart Buttons for flyouts, specifically dynamic flyouts with both a Command and PopulateQueryCommand?
    I seem to be able to add a flyout by setting ControlType : 1 and __type : FlyOutAnchorControl, however, I need to be able to define the PopulateQueryCommand.
     
  5. Is it possible to create a Smart Button which does not display the dialog when the user adds it?
    Setting editableProperties to an empty array or null does not seem to work for me.

 

Thanks,
DFA.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Ribbon Workbench – Custom Smart Buttons

    Hi DFA,

    Q:"Is it possible to add a Smart Button which does not have a CommandDefinition?"

    A: No, you need to tie a command to Smart Button.

    Q:"Is it possible to add a Command without a control?"

    A: Yes, you can do this.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans