how to set the icon for individual items in a lookup field in Dynamics 365 on premise?

Li, Yanwei 0 Reputation points

While filtering the Partylist in Regarding field in an activity, I use the method setEntityTypes(), we can't get the entity icon for item selected in the Regarding lookup field in this way. And I can't find the related method to set the item icon for individual item in a lookup field. We need to keep the entity icon for the item selected, how we can set it programmatically via JScript?

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
2,632 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
744 questions
0 comments No comments
{count} votes