The following is some sample code which I am using to add to the item
string ListName = root.SelectSingleNode("/my:myFields/my:ListName", NamespaceManager).Value;
string taskNumberStage = root.SelectSingleNode("/my:myFields/my:TaskNumberStage", NamespaceManager).Value;
string groupTaskNumber = root.SelectSingleNode("/my:myFields/my:GroupTaskNumber", NamespaceManager).Value;
XPathNavigator batch = DataSources["Submit"].CreateNavigator()
batch.SelectSingleNode(
"/Batch/Method/Field[@Name='TaskNumberStage']", NamespaceManager).SetValue(taskNumberStage);
batch.SelectSingleNode(
"/Batch/Method/Field[@Name='GroupTaskNumber']", NamespaceManager).SetValue(groupTaskNumber);
batch.SelectSingleNode(
"/Batch/Method/Field[@Name='TaskTitle']", NamespaceManager).SetValue(taskTitle);
DataConnections["Web Service Submit"].Execute();
I attempt to use the same thinking that it will add to the xml document, which it does and thinking in turn it should update the SharePoint List.
But unfortunately its not doing that, I'm missing a key part but I don't know what it is, can anyone help please?