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

Notifications

Announcements

No record found.

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,983 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,512 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 61 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 52 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 42 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans