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 :
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

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans