cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using Expression in CPI Filter

jonaswang
Product and Topic Expert
Product and Topic Expert
3,069

Hi Experts,

I want to using expression dynamically construct an xpath when using filter in CPI. Is it something possible?

Accepted Solutions (0)

Answers (2)

Answers (2)

csan
Newcomer
0 Likes

With the new XPath 3.1 capabilities, you write something like

function:simple('${property.my_property}'))

inside your xpath.

It is documented here: https://help.sap.com/docs/cloud-integration/sap-cloud-integration/examples

The example given is:
/starCatalogue/star[(class le function:simple('${property.class}')) and (class ge function:simple('${property.class}'))]

 

Venkat_Kar
Discoverer
0 Likes

Hi,

When you use filter, use '$' in front of property name. For example, $Company = 'Test'

Don't use ${property.company} inside filter.