Easiest way to show dynamic Foundry icon in Workshop Object Lists

What is the easiest way to show a conditional Foundry icon in Workshop Object Lists?

My objects have a “type” property. Depending on that property, I want to show a different Foundry icon and color combination.

As a simple example, if type = “Group” I want to show Foundry’s “team” icon with color “blue”. If type = “User” I want to show Foundry’s “user” icon with color “green”.

What’s the best way to do this? I see in the documentation that “Currently, image URLs, image attachments, and media reference properties are supported” for the image shown in an Object List, but I don’t see how to use those for what I need. I don’t want users to upload images.

Asked the same question a while ago in this thread:

https://community.palantir.com/t/show-icon-in-a-object-table-based-on-propery-value/3535/3

1 Like