locked
CRM 2011: Get entity type code of a lookup field RRS feed

  • Question

  • Hi all, in order to get the entity type code of a lookup field, we need to use the following statement:

    Xrm.Page.getAttribute( "lookupfieldname" ).getValue()[0].type;

    But this will work only if the field is not empty, the question is how to get the entity type code of an empty lookup field ?

    Best regards..

    Wednesday, May 30, 2012 11:09 AM

Answers

All replies