web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Ribbon Workbench – Custom Smart Buttons

(0) ShareShare
ReportReport
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.

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 60 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 51

#3
Satyam Prakash Profile Picture

Satyam Prakash 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans