CRM 2011: Get entity type code of a lookup field

Yanıt CRM 2011: Get entity type code of a lookup field

  • 30 Mayıs 2012 Çarşamba 11:09
     
      Kod İçerir

    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..

Tüm Yanıtlar