I'm trying to use the SDK to set some multi-value field groups and I'm running into some trouble.
Here's a representative sample of my code. I've tried to stay true to the sample I found in PRD319 ImportingandUpdatingwiththeSDK\Dev 302 Sample Code\Dev_302.cs.
fvc.AppendValues("Field One", new object[] { "Value One" });
fvc.AppendValues("Field Two", new object[] { "Value Two" });
var rowNums = new List<int> { 1 };
fvc.SetFieldRowNumbers("Field One", rowNums);
fvc.SetFieldRowNumbers("Field Two", rowNums);
doc.SetFieldValues(fvc);
doc.Save();
I can see that fvc (FieldValueCollection) is getting populated with the values, but after the save, the fields that are part of multi-value groups are empty. The rest of the standard fields that were set further up have been save appropriately. There aren't any errors thrown.
What am I missing?
This is using SDK 10.2 against LFS 10.4.1.362.