I have source list named: Managers
I have one site column Managers which is a lookup column to Managers--> Title column
I have another list "Details" where we use lookup column "Manager"
getListItems(_spPageContextInfo.webAbsoluteUrl,'?$select=Managers/Title,Managers/Id&$expand=Managers','Details',
function(items){
if(items.length > 0)
console.log(items[0].Managers.Title);
console.log(items[0].Managers.Id);
},
function(error){
console.log(error.responseText);
});
No comments:
Post a Comment