Original Message:
Sent: Mon July 24, 2023 05:31 PM
From: Steve Linn
Subject: xpath expresson on switch policy not woring
Hi Santhoshkumar,
Not sure why your above two posts appear empty, although at one time I thought I saw you posted a version but it isn't visible now? Anyway, I was told this was fixed in API Manager 10.0.5.3. I asked above what was your DataPower firmware version, but the correct question for the publish issue is what is your API Connect version?
Best Regards,
Steve
------------------------------
Steve Linn
Senior Consulting I/T Specialist
IBM
Original Message:
Sent: Mon July 24, 2023 09:29 AM
From: santhoshkumar surisetty
Subject: xpath expresson on switch policy not woring
we are using 10.5.0.4 . could you please let me know in which version the issue is fixed.
------------------------------
santhoshkumar surisetty
Original Message:
Sent: Mon July 24, 2023 09:11 AM
From: santhoshkumar surisetty
Subject: xpath expresson on switch policy not woring
we are using 10.5.0.4 . could you please tell me in which version it was fixed.
------------------------------
santhoshkumar surisetty
Original Message:
Sent: Mon July 24, 2023 07:19 AM
From: Steve Linn
Subject: xpath expresson on switch policy not woring
Hi Santhoshkumar,
What firmware version are you using? This error is a product defect that has been fixed in the current release.
Best Regards,
Steve Linn
------------------------------
Steve Linn
Senior Consulting I/T Specialist
IBM
Original Message:
Sent: Sat July 22, 2023 10:46 PM
From: santhoshkumar surisetty
Subject: xpath expresson on switch policy not woring
i tried same syntax before but it won't let me to publish and getting error

------------------------------
santhoshkumar surisetty
Original Message:
Sent: Sat July 22, 2023 01:34 PM
From: Steve Linn
Subject: xpath expresson on switch policy not woring
Hi Santhoshkumar,
the expression for the switch policy is JSONata with the $xpath function on the left side and your string literal on the right side of the equal operator. You gave the string literal of the JSONata as part of the XPath. Please try:
($xpath(message.body, "//*[local-name()='heading']")= 'Reminder')
Best Regards,
Steve Linn
------------------------------
Steve Linn
Senior Consulting I/T Specialist
IBM
Original Message:
Sent: Fri July 21, 2023 11:25 AM
From: santhoshkumar surisetty
Subject: xpath expresson on switch policy not woring
Hi ,
xpath function on switch policy is not working , Could you please help on it. please guide me on syntax if it is wrong .i used two syntaxes.
($xpath(message.body, "//*[local-name()='heading']= 'Reminder'") )
($xpath(request.parsed_body, "//*[local-name()='heading']= 'Reminder'") )

------------------------------
santhoshkumar surisetty
------------------------------