Determining the entity type of a Entity Bound Smart Part user control in the SalesLogix Web Client

 There may come a time when you have a common page that is loaded onto multiple entity pages in the SalesLogix web client.  OOTB examples of this are the History and Activity lists that appear on various pages.  The Entity Bound Smart Part coontrol class that smart parts are based on has a built in EntityContext service.  From this service you can then determine what entity type the current page is bound to by using code like so:

string myEntityName = EntityContext.EntityType.Name.ToUpper();

 you can also use the same service to get the current ID of the entity like

string id = EntityContext.EntityId.ToString();



Kris Halsrud

Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!