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

Announcements

No record found.

News and Announcements icon
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.

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    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.

  • Sasha Golovach Profile Picture
    5 on at

    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.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    I'm glad that you resolved your issue.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 85 Super User 2026 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#3
11manish Profile Picture

11manish 64

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans