Skip to Content
0
May 05, 2016 at 03:20 PM

Conditional xpath following B1 Object

98 Views

I have the following message output after I call a B1 Object (atom17):


</Payload><Payload Role="C" id="atom17" system="0010000109" status="success" b1login="Technical User" method="Synchronous Insert" objectid="59" payload="atom18"keyname="DocEntry" keyvalue="" DIresult="failure" DImsg="&#xA;Exception : DI Error: (-2028) No matching records found (ODBC -2028)"/>


The xml editor show the following xpath for the DIresult:


/Msg/Body/Payload[10]/@DIresult


I am trying get an expression for conditional processing. The following should be close but B1if tells me the path is invalid:


/*[/vpf:Msg/vpf:Body/vpf:Payload[./@id='atom17']/@DIresult=‘failure’]


Can you tell me what the path should be or look like?