Skip to main content
Hello,
I have a Default Client event from where I send an email.

In the email I want to add a value from a xmlfield.

My xmlfield value looks like this:
- <traceRoot>
- <traceData>
<traceComment>ok 1</traceComment>
</traceData>
- <traceData>
<traceComment>also OK here</traceComment>
</traceRoot>


I would like to add the last traceComment (also OK here). How can I do this ?

I I use

Dim strComment As String
strComment = SourceCode.K2Utilities.XMLFieldMod.GetXMLValue(K2.ProcessInstance.XmlFields("trace").Value,"traceRoot/traceData/traceComment")

always the first traceComment is send.
have a look at this post:
http://forum.k2workflow.com/viewtopic.php?t=1571

Reply