I have a document library (contact). Have created a custom list (workstatus). Have added column to contact library which is lookup of workstatus.
Below is my code using which i am setting the lookup column value. Unfortunately code runs fine (no exceptions) but when i check in SharePoint value is not set for the given column
FieldLookupValue lvworkstatus = new FieldLookupValue(); lvworkstatus.LookupId = workstatus; item["crmworkstatus"] = lvworkstatus; item.Update(); context.Load(uploadFile); context.ExecuteQuery();
Kindly let me know what is wrong / missing.