cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional processing: xPath Expression

Former Member
0 Kudos

Hi,

after a B1Call, I want to check if the B1CallResult has the status failed and then send an internal B1 Message to a specific user. I used the conditional processing atom for the check with the following xPath Expression:

/vpf:Msg/vpf:Body/vpf:Payload[./@Role='C' and ./@id='atom2']/B1CallResult[./@status='failure']

However the message never enters the path when the B1Call failed. What am I doing wrong?

Thanks!

Nils

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I already found the solution. The xPath has to look like this:

/*[/vpf:Msg/vpf:Body/vpf:Payload[./@Role='C' and ./@id='atom2']/vpf:B1CallResult[./@status='failure']]

Former Member
0 Kudos

Hi All,

I first did a query 'Select CardCode From OCRD Where CardCode = '<xsl:value-of select="$msg/BOM/BO/Documents/row/CardCode"></xsl:value-of>'

and if the rowCount = 0 the BP does not exist and I create the BP else I go straight to the create SO.

Regards, Brenden

Answers (0)