I have a search box in the form, before I select the related object to search, I check some conditions, if not pass, I overwrite the onclick event to notify the user; else, I need to rewrite the onclick event to show the search box so that the user can select the entity.
So, I need an object type code for this search, but before choosing, there is no value, then I canβt get an object type code using this code: var objecttypecode = Xrm.Page.getAttribute ("field id") .getValue ( ) [0] .type;
How to get an object type code by object name?
source share