GetXMLValue

  • 10 November 2006
  • 1 reply
  • 0 views

Badge +5
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.

Reply