Ben Walker
  • Blog
  • Blog

Adding Sitemap icons for Out Of the Box tables which have no SVG icons

3/10/2021

0 Comments

 
There are a number of Out Of the Box (OOB) tables in Dynamics 365 which have no SVG icons. Some examples include Order Products, Invoice Products and Services. This doesn't really present a problem until you decide to add one of these icons to your Sitemap.
As the table has no SVG icon, adding the table to the Sitemap results in the table being rendered like this (in Chrome):
Picture
or this (in Firefox):
Picture
So, how do we add an icon to these tables so they display as we would want them to in the Sitemap? If we open our solution in the old customiser interface we can see that the 'Update Icons' button that exists for custom entities does not appear, and if we look in the PowerApps portal, again, there is no option to add a web resource as an icon as there is for custom entities.
The entity does not even show up in the list of tables in the XRM Toolbox 'Iconator' tool (https://www.xrmtoolbox.com/plugins/MscrmTools.Iconator), so we can't use that to give the table an icon.
Finally, if we look in the App SiteMap editor, the table has the option 'Use Default Image' displayed but this is greyed out with no option to change it.
Picture
But you can add an icon for the table to use in the sitemap, using the following very counter-intuitiuve approach:
In Advanced Settings, select the Settings -> Customizations option and then click 'Customize the System' to open the Default solution:
Picture
Now navigate down to Model Driven Apps and from here open the App whose Sitemap you want to fix:
Picture
This will open the App Designer just as if you had opened it from the Power Apps portal, but this time if you go to the Sitemap Editor via this route, the option to choose an icon has now become enabled and you can select from any of the out of the box or custom icons available in your environment.
Picture
Choosing an icon and saving the Sitemap results in the icon being displayed as you'd expect. I don't know if this behaviour is by design, as it doesn't really make sense that the only way to do this is to edit the Model-Driven App through the Default Solution, but it works!

On a final  note, the solution above works when you want to add an entity with no SVG icon to the Sitemap, but it does not help when one of these entities appears as a lookup on a form. Here's the OOB Unit Of Measure entity as it appears on one of the OOB forms - if you know how to get rid of that 'Jigsaw puzzle piece' icon, do let me know!
Picture
With many thanks to Mishel Achkov from Microsoft for pointing out this solution to me.
0 Comments



Leave a Reply.

    Archives

    July 2021
    June 2021
    May 2020
    March 2020
    December 2019
    October 2019
    June 2018
    February 2018
    October 2017
    September 2017
    August 2017
    May 2017
    April 2017

    Categories

    All
    Dynamics 365
    Dynamics CRM
    FakeXrmEasy
    LINQPad
    Testing

    RSS Feed

    Author

    Some stuff about me!

Proudly powered by Weebly