Skip to main content
5 of 5
replaced http://sharepoint.stackexchange.com/ with https://sharepoint.stackexchange.com/

Please, take a look at this question. So you can do something like this:

SPListItem lookedUpItem =  GetItemSomeHow();
newItem[lookupField] = new SPFieldLookupValue( lookedUpItem.ID, lookedUpItem.Title);
newItem.Update();

Hope it helps. If so, please, don't forget to press upvote and mark as answer. :)

MikhailSP
  • 1.4k
  • 2
  • 13
  • 26