Notifications
Announcements
No record found.
I want to add a custom icon on the portal in the list view but i am getting an error
Hi,
Please share your source code.
Please see below blog for sample code -
docs.microsoft.com/.../display-custom-icons-instead
Please mark my answer verified if this is helpful!
Regards,
Bipin Kumar
Follow my Blog: xrmdynamicscrm.wordpress.com/
This is the js code that I have added -
function displayIconTooltip(rowData, userLCID) {
var str = JSON.parse(rowData);
var col_data = str.stateCode_Value;
var imgName = “”;
var tooltip = “{” + col_data +”}”;
switch (col_data) {
case 1:
imgName = “cr7af_Active”;
tooltip = “Active”;
break;
case 2:
imgName = cr7af_Inactive
tooltip = “Inactive”;
}
var resultarray = [imgName, tooltip];
return resultarray;
Hi Prashant.ITT,
Based on your screenshot, the column you need is 'Status(statecode)' field of case entity.
And col_data get value from the 'Status' field, so you need use correct value in js code:
The following screenshot provide correct value for the 'Status' field of case entity:
incident EntityType (Microsoft.Dynamics.CRM) | Microsoft Docs
Hello,
pls refer this article,
https://www.iotap.com/blog/2018/02/01/custom-icons-for-list-view-in-dynamics-365/
https://d365goddess.com/d365-ce-adding-icons-to-views/
https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/customize/display-custom-icons-instead?view=op-9-1
I hope it helps,Thanks.Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365
Hi Partner,
Can you click Yes under "Did this answer your question?" to close this thread if my answer is helpful.
Thanks in advance!:)
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 61 Super User 2025 Season 2
Siv Sagar 52 Super User 2025 Season 2
Daniyal Khaleel 42 Most Valuable Professional