Top_bottom banner

//How to get the Lookup field value using JavaScript?

    var lookupObject = Xrm.Page.getAttribute(“<lookupattributename>”);
    if (lookupObject != null)
    {
        var lookUpObjectValue = lookupObject.getValue();
        if ((lookUpObjectValue != null))
        {
         var lookuptextvalue = lookUpObjectValue[0].name;
         var lookupid = lookUpObjectValue[0].id;
        }
     }

Please share |Like in Facebook if you feel like this page is useful.

Top_bottom banner

Advertisements