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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Second Item In Flyout Menu Not Working.

(0) ShareShare
ReportReport
Posted on by 142

I am trying to create a flyout menu with 2 choices. However I can't seem to get the second choice to show on the flyout menu. Below is how I have configured this. Strange thing is if I copy the configuration of the first item to the second item then it appears. But as soon as I change the command in the second item it now longer shows. Anyone know where I am going wrong here? TIA.

First command that works 

pastedimage1646994746221v1.png

Second command that doesn't show menu item

pastedimage1646994846688v2.png

Flyout menu button

pastedimage1646994911716v3.png

Populate menu javascript

function populateActionMenu(commandProperties) {
    console.log("Hit");
    var entityName = Xrm.Page.data.entity.getEntityName();
    var isUCI = Xrm.Internal.isUci();
    var page = "Form";
    var createLeadCommand = 'new.new_swscampaignitem.CreateLead.Command';
    var createLeadEOICommand = 'new.new_swscampaignitem.CreateLeadEOI.Command';
    if (isUCI) {
        createLeadCommand = entityName + "|NoRelationship|" + page + "|" + createLeadCommand;
        createLeadEOICommand = entityName + "|NoRelationship|" + page + "|" + createLeadEOICommand;
    }
    var menuXml = '<Menu Id="new.new_dslschema.Button18.Button.Menu">';
    menuXml += '<MenuSection Id="new.new_dslschema.Section19.Section" Sequence="10" DisplayMode="Menu16">';
    menuXml += '<Controls Id="new.new_dslschema.Section19.Section.Controls">';
    menuXml += '<Button Alt="Create Lead" Command="' + createLeadCommand + '" Id="vrp.vrp_customerproduct.Button.CreateLeadButton" LabelText="Create Lead" Sequence="10" TemplateAlias="o1" ToolTipTitle="Create Lead" ToolTipDescription="Create Lead" />';
    menuXml += '<Button Alt="Create Lead And EOI" Command="' + createLeadEOICommand + '" Id="vrp.vrp_customerproduct.Button.CreateLeadEOIButton" LabelText="Create Lead And EOI" Sequence="20" TemplateAlias="o1" ToolTipTitle="Create Lead And EOI" ToolTipDescription="Create Lead And EOI" />';
    menuXml += '</Controls>';
    menuXml += '</MenuSection>';
    menuXml += '</Menu>';

    commandProperties["PopulationXML"] = menuXml;
}
I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Second Item In Flyout Menu Not Working.

    Hi Jon Farmer,

    Please check whether you select the command to your second button.

    Click your second button and check its command.

    Screenshot-2022_2D00_03_2D00_15-141256.png

    It works on my side:

    Screenshot-2022_2D00_03_2D00_15-141332.png

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
DAnny3211 Profile Picture

DAnny3211 126

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 117

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans