web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Add custom icon

(0) ShareShare
ReportReport
Posted on by 153

I want to add a custom icon on the portal in the list view but i am getting an error

Image20220105155748.png 

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    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/

  • Prashant.ITT Profile Picture
    153 on at

    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”;

    break;

    }

    var resultarray = [imgName, tooltip];

    return resultarray;

    }

  • Suggested answer
    Community Member Profile Picture
    on at

    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:

    pastedimage1641443026884v2.png

    incident EntityType (Microsoft.Dynamics.CRM) | Microsoft Docs

  • Suggested answer
    CRMJetty Profile Picture
    3,514 on at

    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

  • Community Member Profile Picture
    on at

    Hi Partner,

    Can you click Yes under "Did this answer your question?" to close this thread if my answer is helpful.

     Image

    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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 51 Super User 2026 Season 1

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#3
Nagaraju_Matta Profile Picture

Nagaraju_Matta 50

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans