Unified Interface Env
here I want to update the icon Add to Marketing List ,
So in the contact Entity Ribbon.xml file my code
<CustomAction Id="tre.contact.Button2.Button.CustomAction" Location="Mscrm.HomepageGrid.contact.MainTab.Collaborate.Controls._children" Sequence="10">
<CommandUIDefinition>
<Button Alt="$LocLabels:tre.contact.Button2.Button.Alt" Command="tre.contact.AddtoMarketingList.Command" Id="tre.contact.Button2.Button" Image32by32="/uclient/resources/images/Add.svg" Image16by16="/uclient/resources/images/Add.svg" LabelText="$LocLabels:tre.contact.Button2.Button.LabelText" Sequence="10" TemplateAlias="o1" ToolTipTitle="$LocLabels:tre.contact.Button2.Button.ToolTipTitle" ToolTipDescription="$LocLabels:tre.contact.Button2.Button.ToolTipDescription" />
</CommandUIDefinition>
</CustomAction>
<CustomAction Id="tre.contact.Button3.Button.CustomAction" Location="Mscrm.SubGrid.contact.MainTab.Collaborate.Controls._children" Sequence="10">
<CommandUIDefinition>
<Button Alt="$LocLabels:tre.contact.Button3.Button.Alt" Command="tre.contact.AddtoMarketingList.Command" Id="tre.contact.Button3.Button" Image32by32="/uclient/resources/images/Add.svg" Image16by16="/uclient/resources/images/Add.svg" LabelText="$LocLabels:tre.contact.Button3.Button.LabelText" Sequence="10" TemplateAlias="o1" ToolTipTitle="$LocLabels:tre.contact.Button3.Button.ToolTipTitle" ToolTipDescription="$LocLabels:tre.contact.Button3.Button.ToolTipDescription" />
</CommandUIDefinition>
</CustomAction>
<CustomAction Id="tre.contact.Button4.Button.CustomAction" Location="Mscrm.Form.contact.MainTab.Save.Controls._children" Sequence="61">
<CommandUIDefinition>
<Button Alt="$LocLabels:tre.contact.Button4.Button.Alt" Command="tre.contact.AddtoMarketingListOnContact.Command" Id="tre.contact.Button4.Button" Image32by32="/uclient/resources/images/Add.svg" Image16by16="/uclient/resources/images/Add.svg" LabelText="$LocLabels:tre.contact.Button4.Button.LabelText" Sequence="61" TemplateAlias="o1" ToolTipTitle="$LocLabels:tre.contact.Button4.Button.ToolTipTitle" ToolTipDescription="$LocLabels:tre.contact.Button4.Button.ToolTipDescription" />
</CommandUIDefinition>
</CustomAction>
But in the UI the icon is not getting
so I have import the solution in the ribbon work bench and i am able to see plus icon image but in the UI I am not able to see
No Icon found.
Even I am giving same id see my html code
Hi Ravindra,
Note that you must use a .svg icon file in the WebResource used in ModernImage, a .png file will not work.
Hello ,
Now I am defining the tag ModernImage but still same issue
<CustomAction Id="tre.contact.Button2.Button.CustomAction" Location="Mscrm.HomepageGrid.contact.MainTab.Collaborate.Controls._children" Sequence="10">
<CommandUIDefinition>
<Button Alt="$LocLabels:tre.contact.Button2.Button.Alt" Command="tre.contact.AddtoMarketingList.Command" Id="tre.contact.Button2.Button" Image32by32="/_imgs/ribbon/AddToMarketingList_32.png" Image16by16="/_imgs/ribbon/AddToMarketingList_16.png" ModernImage="/_imgs/ribbon/AddToMarketingList_16.png" LabelText="$LocLabels:tre.contact.Button2.Button.LabelText" Sequence="10" TemplateAlias="o1" ToolTipTitle="$LocLabels:tre.contact.Button2.Button.ToolTipTitle" ToolTipDescription="$LocLabels:tre.contact.Button2.Button.ToolTipDescription" />
</CommandUIDefinition>
</CustomAction>
<CustomAction Id="tre.contact.Button3.Button.CustomAction" Location="Mscrm.SubGrid.contact.MainTab.Collaborate.Controls._children" Sequence="10">
<CommandUIDefinition>
<Button Alt="$LocLabels:tre.contact.Button3.Button.Alt" Command="tre.contact.AddtoMarketingList.Command" Id="tre.contact.Button3.Button" Image32by32="/_imgs/ribbon/AddToMarketingList_32.png" Image16by16="/_imgs/ribbon/AddToMarketingList_16.png" ModernImage="/_imgs/ribbon/AddToMarketingList_16.png" LabelText="$LocLabels:tre.contact.Button3.Button.LabelText" Sequence="10" TemplateAlias="o1" ToolTipTitle="$LocLabels:tre.contact.Button3.Button.ToolTipTitle" ToolTipDescription="$LocLabels:tre.contact.Button3.Button.ToolTipDescription" />
</CommandUIDefinition>
</CustomAction>
<CustomAction Id="tre.contact.Button4.Button.CustomAction" Location="Mscrm.Form.contact.MainTab.Save.Controls._children" Sequence="61">
<CommandUIDefinition>
<Button Alt="$LocLabels:tre.contact.Button4.Button.Alt" Command="tre.contact.AddtoMarketingListOnContact.Command" Id="tre.contact.Button4.Button" Image32by32="/_imgs/ribbon/AddToMarketingList_32.png" Image16by16="/_imgs/ribbon/AddToMarketingList_16.png" ModernImage="/_imgs/ribbon/AddToMarketingList_16.png" LabelText="$LocLabels:tre.contact.Button4.Button.LabelText" Sequence="61" TemplateAlias="o1" ToolTipTitle="$LocLabels:tre.contact.Button4.Button.ToolTipTitle" ToolTipDescription="$LocLabels:tre.contact.Button4.Button.ToolTipDescription" />
</CommandUIDefinition>
and ribbon work bench i am able to see but after publish it is not coming .
Hi Ravi,
Note that image16 and Image32 are used to define only the icons in the legacy/classic Web interface ( .png web resources icons). To define the svg icon in the Unified Interface Client ( UCI) you need to define it in the tag ModernImage
See blogs below for more details:
https://d365demystified.com/2019/05/31/fix-ribbon-icons-on-the-unified-interface-in-d365-ce/
https://carldesouza.com/how-to-set-button-icons-in-unified-interface-and-dynamics-365-power-apps/
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156