Philip's profilePhilip RichardsonBlogLists Tools Help

Blog


    March 07

    Custom Entity Icons

    I discovered an interesting feature today. I always thought that CRM stored custom icons in the inetpub folder. However it turns out that the custom entity icons are stored in the database (in the form xml).
     

            <Icon type="GridIcon">R0lGODlhEAAQANUzAP//s9nYh7+/fc/Pj9CkG9TJe//3n8+iG//xl/TQcPXsqc/HfM/PhP/+4///9f/Vcf/90tnZpc/Kf7+/if/8vcTEj9nZl//qjenLcdnZiP/de//6pNTFd8nJi9TPgf/Qat/fqunYftCkF//WcKmpc//geru5rP/9l//Ra//1j//uiNmmGv/ogv//8v//33l3a9KkEv//mf//zP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAADMALAAAAAAQABAAAAaNwJlwSCwKYcikUmmawRytqHTagr2cDZd2y3VZnRCZODKpgMTiL4wCAHRIgwHJ0gaoN7EYI5MXCPIxagYnhIQBJAGFaggpjSkSJB6OKWoXKpcqJAuYl2osn58FIaCfaholqCUkHKhKVzAPI7IjGAmyMAoEL00wHyi/wL8wIrtHK8fIyAfFQiYvz9DRTUJBADs=</Icon>

          </Icons>

     
    These are then rendered with an aspx page which takes the encoded image from the database and displays it as an image (naturally these are also cached for performance). All the 'application' icons are stored in the file system.
     
    The good news here is: when moving between different implementations - your icons will come over with the ImportExport.xml and you don't have to worry about deploying custom icons out to load balanced servers.
     
    This posting is provided "AS IS" with no warranties, and confers no rights.

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.
    Philip Richardson has turned off comments on this page.

    Trackbacks

    The trackback URL for this entry is:
    http://philiprichardson.spaces.live.com/blog/cns!E1C114B0FC9B3FE!604.trak
    Weblogs that reference this entry
    • None