on 03-13-2018 12:27 PM
HI All,
I want to filter the content comparing date with a date node in the content. The date to compare is saved in one of the header variable. Can we access the header variable in the XPath expression? When I used ${header.lastModified} gives me InvalidXPathExpression exception. Tried without curly braces, but the comparison is not working.
Regards,
Anoop
Hi Anoop,
Could you please refer below blog.
https://blogs.sap.com/2017/06/01/sap-cloud-platform-integration-content-filter-in-detail/
hope this helps !
thanks and regards,
Praveen T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Anoop,
Considering, your input structure is in below way -
<recordset>
<record>
<date>20180314</date>
</record>
</recordset>
Then you can write the Xpath expression as /record/recordset[contains(date,$header.lastmodified)]
Regards,
Nitin Deshpande
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.