D365 CRM: Show emojis in a Home Page Grid view of an entity



  • If you have in your entity a column that maybe can be represented by images like emojis, CRM has a feature to archive this. Let’s take this example of this custom field:
     


    This is a custom Option Set field called Relationship with the options Good Relationship, Neutral Relationship and Bad Relationship. We thing that this field value will be better represented by emojis icons. To archive this, we will need:
    -A custom Option Set field with the options:

     

    -Three Web Resources of type PNG or GIF (for transparency background) with the emojis.
    -Another Web Resource of type JavaScript that executes the code to convert the options in the emojis.

     

    The JavaScript code is:

     

    This code will execute in each row of the current page of the grid, get the value of the option set field and replace with the target image of the emoji.
    To finish this, we need to go to the target view of the entity to customize, add the Option Set column, click Change Properties, select the JavaScript Web Resource and enter the Function Name:

     

    Click OK, Save and Publish the customizations. The result:



    Enjoy it!


  • Comments



Add a Comment