Hi,
I’m seeing some behavior in Sales Hub, Customer Sales Hub, etc., which I can’t explain.
So, I just want to know if I’m doing something wrong, or if this is expected behavior.
I’ve tried to simplify it as much as possible, so I just added a Flyout Anchor button in Ribbon Workbench which uses a Command for PopulateQueryCommand, which in turn calls a JS function with the CRM Parameter “CommandProperties”.
The JS function:
function flyoutPopulate(_commandProperties) { debugger; _commandProperties["PopulationXML"] = '<Menu Id="new.task.Button3.flyout.Menu">' + '<MenuSection Id="new.task.Button3.flyout.Menu.Section" Sequence="10" DisplayMode="Menu16">' + '<Controls Id="new.task.Button3.flyout.Menu.Section.Control">' + '<Button Command="new.task.Command0.Click" Id="new.task.Button2.Button" CommandValueId="buttonTestValue2" LabelText="SomeButtonText" Sequence="1" ToolTipDescription="SomeButtonText" />' + '</Controls>' + '</MenuSection>' + '</Menu>'; }
Result
I’m getting the following when clicking on the Flyout Anchor button in Sales Hub:
If I change the JS function, so that the button id is identical to the id of any other existing button (in this case “Test button”):
The button is displayed; however, it's command is not being executed.
The command is identical to that of the “Test button”, which works.
It also looks like that CommandValueId is not passed along in the CommandProperty (for static buttons).
Everything works in the standard “Sales”.
Thanks
*This post is locked for comments