Quantcast
Channel: Nintex Connect: Unanswered Threads
Viewing all articles
Browse latest Browse all 2462

XPath failing in Query XML

$
0
0

I've seen a few posts on XPath and extracting repeating table data here but can't seem to get my example working. Can anyone put some light on this please?

I have a Nintex 2013 form with a repeating table.

In the workflow for this form I want to extract the table data and place in an email. The formatting and looping of this is for a later task so I'm concentrating on just getting the XML and the data.

So far I have created a Query List as the first step to get the Form Data field from the list for the current item and stored this in a text variable (FormXML).

Second step is my Query XML step. This is set to XML source and in the XML field the following is used to decode my variable above:-  fn-XmlDecode({WorkflowVariable:FormXML})

In Output 1 I specify an XPath of //Items/Item/Code. This is output to a variable OrderDescription

My email then has OrderDescription in its body.

The Issue:

If I use any type of XPath I get an email of nothing.

If I don't use XPath and set the output to nothing I get an email with all the XML like so:- <?xml version="1.0" encoding="utf-8"?><RepeaterData><Version /><Items><Item><Frame2200x1600 type="System.String">Frames 2200x1600 internal </Frame2200x1600><Code type="System.String">12345</Code><QtyReq type="System.String">123456</QtyReq><QtyDel type="System.String">123456</QtyDel></Item></Items></RepeaterData>

so I know I'm getting the XML. I've tested the XPath online and it validates. How come Nintex WF can't use it?

I have tried putting a string builder before Query XML in but still no joy.

Thanks for any help Kevin.


Viewing all articles
Browse latest Browse all 2462

Trending Articles