Subsystem is a lookup column and in other list I want to insert the value from this lookup column to Title column..

 data:  JSON.stringify({ '__metadata': { 'type':
 'SP.Data.SubsystemsListItem' }, 
              'TitleId': data.d.results[k].Subsystem.ID}),

this doesn't worked..


Lookup Columns are a little bit tricky... You have to check if they are spelled correctly and if you e.g. access the items by REST you need to "expand" some values first: http://www.threewill.com/using-the-expand-odata-query-option-in-sharepoint-2013/

But since you provided so little information (we need more code) it's almost impossible to guess where the problem is.

"doen't work" is an error message that is not very helpfull.

If you do AJAX calls (REST/CSOM/JCOM) it normaly helps to look if the requst actually gets to the server and to check what is the answer of the server. With the F12-Tools in common browsers and there the network analysis view you actually can solve 80% of these kind of problems.

  • the code works if I insert it to the same subsystem column in other list. But here the problem is that I need to insert it to Title column which is not lookup field. – KumarV Nov 16 '15 at 15:50
  • Could you please post the code...? And again: What is the response (header)? What is the actual error message? – Dave Nov 16 '15 at 15:52
  • I simply stored the value from the lookup column to a variable and assigned it to title column.. – KumarV Nov 18 '15 at 8:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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