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

We’re a group of digital transformation enablers who have a deep appreciation and understanding of how business can be transformed digitally thus to help companies to increase their revenue using Microsoft tools like Office 365, Microsoft 365, Power Platform, Dynamics 365 and Azure. To know more about our services and products, please write to us at


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s