Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Dynamically populated Flyout menu images does not work in Sales Hub, Customer Sales Hub, etc.

(0) ShareShare
ReportReport
Posted on by 5

Hi,

 I’m struggling to add some icons to flyout buttons in Sales Hub, Customer Sales Hub, etc., whereas they work in Dynamics 365 old version.

The JS function:

function populateFlyout(commandProperties) {
  debugger;

  commandProperties['PopulationXML'] = ``;
}

Actual behavior (Sales Hub) : 

pastedimage1582544906330v1.png

Expected behavior (old design):

pastedimage1582545309074v2.png

I have tried to use all combinations of "ModernImage / Image16by16 / Image32by32" in button`s xml, but it does not work.

  • a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: Dynamically populated Flyout menu images does not work in Sales Hub, Customer Sales Hub, etc.

    I'm glad that you resolved your issue.

  • Sasha Golovach Profile Picture
    Sasha Golovach 5 on at
    RE: Dynamically populated Flyout menu images does not work in Sales Hub, Customer Sales Hub, etc.

    Thank you for the answer. I just found the solution that works for me. It turns out that ModernImage attribute works with "$webresource:image.svg" even from js code, whereas Image16by16/Image32by32 should be only url.

  • Verified answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: Dynamically populated Flyout menu images does not work in Sales Hub, Customer Sales Hub, etc.

    Hello,

    I would say ModernImage is your choice. My recommendation - check how ribbon workbench makes it with static buttons - just add a button add an image to it and check xml that you can find on CommandXml tab.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans