I could get the date field to update properly. But I am unble to update a lookup field.
I have a Request ID - text field on the doc library. This will be unique. Then I have another doc library where I have a lookup column which refers to Request ID of the prev lib. How do I update the lookup column value. If I psecify the requedt ID directly, it does not work.
I came across some information that to update lookup column, you have to give the ID of the references list/doc entry. However this is not working for me. Could someone share exact format for this.
This is my code:
string myPlan = string.Format(
"<Method ID='1' Cmd='Update'>" +
"<Field Name='ID'>" + docId +"</Field>" +
"<Field Name='FileRef'>" + myUrl "</Field>" +
//"<Field Name='RequestId'>{0}</Field>" +
"<Field Name='SupportPlanId'>{0}</Field>" +
"</Method>",
---->>>> //requestId,
supportPlanId);
How do I specify the correct ID in the code marked with arrow?