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

Li, Yanwei 0 Reputation points
2023-11-15T17:07:39.8166667+00:00

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.
5,274 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,008 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.