cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional xpath following B1 Object

former_member247972
Participant
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

anthony_mendes3
Participant
0 Kudos

Hi Thomas,

You will need to add a box bracket around your condition. See the bits highlighted in RED below

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

Answers (0)