I have an Infopath wf and I want to get the initial values submitted on the IP form. I've tried using the following:
K2.ProcessInstance.XmlFields[
"MyTemplate"].Value -> this just gives the document with no xpath values, it's a blank form.K2.ActivityInstanceDestination.XmlFields["MyTemplate"].Value -> this always gives an error that the template/key cannot be found, not valid xml field
The above calls are made in Server Events (code).
I'm basically wanting to log the changes of the fields of the IP form in each activity to an external database for reporting purposes.
Thanks,
Scott