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
    84,331 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
    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
    84,331 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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 78 Super User 2025 Season 1

#3
Sahra Profile Picture

Sahra 43

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans