Hello,
I'm having problems with setting the XML Field values.
I have tried 2 methods and none of them worked for me, so I guess I'm doing something wrong.
Here is the case:
I created new XML Field called TestXMLField. There I have:
<TestElement>
<TestName />
</TestElement>
Method 1. (SmartObject Event)
When I set Return mapping to XML field node <TestName> nothing happens. Value is not set and no error.
If I map same SO filed to process DataField it works so Smart Object is ok.
If I map same SO field to XML Field node that was created by Infopath Integration, Value is also not set and no error.
Method 2. (Server Event code)
SourceCode.Workflow.Common.Utilities.XMLFieldMod.SetXMLValue(K2.ProcessInstance.XmlFields["TestXMLField"].Value,"TestElement/TestName ","Some new value");
Result is the same, Value is not set and no error.
So, what am I doing wrong? Can someone please help?