Related: How to retrieve a ListItem using the Javascript Client Object Model?

In my previous question I was able to successfully retrieve a basic value from a list item. My problem is that I am now trying to retrieve a value from a LookUp column get_item no longer seems to work.

When I do an alert, I get [object Object] instead of the value that is in there.

Code I am using:

function onSuccess(sender, args) {

Should I be using something besides get_item to values from LookUp columns?

  • get_lookupValue() will also work with fields of Type "User" Aug 30, 2011 at 5:59
  • 1
    What about columns that belongs to the lookup field? For example Department name, Department No and so on.
    – Rob
    Jan 20, 2014 at 12:50

3 Answers 3


Looks like I just needed to add the get_lookupValue() function after my get_item call:


Hope this helps someone...


For those not using JSOM and need a solution using REST + JSON, this can be done using the REST API and OData. For example if the list in questions is Employee with a Department Lookup field. We can send a REST request with this format:


Note the OData request parameters $select and $expand (this is needed to get other fields from the lookup list). This request should return:

Employee id and name Department id and name

More information can be found here:


hope it helps.


Using Abe Misseler answer:

var oItem ='';
function retrieveWebSite() {
    SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function(){
        var clientContext = new SP.ClientContext.get_current();
        this.oWebsite = clientContext.get_web();

        var lstObject = oWebsite.get_lists().getByTitle('Listname');
        oItem = lstObject.getItemById(5);

            Function.createDelegate(this, this.onQuerySucceeded), 
            Function.createDelegate(this, this.onQueryFailed)       

function onQuerySucceeded(sender, args) {
    var look  = oItem.get_item('LookupColumnName').get_lookupValue();
    var title = oItem.get_item('Title');
    var id = oItem.get_id();
    alert("Loook up column value: "+look);
    alert("Title column: "+title);
    alert("Id column value: "+id);

function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + 
        '\n' + args.get_stackTrace());

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.