on 2020 Apr 23 11:34 PM
Hi All,
I'm using a Content Modifier - Exchange Property to store data from web service service call.
Using the above example, if the ID node contains multiple values, only the first value is being retrieved. Perhaps, an SAP limitation or maybe the data type should be changed to accommodate a Node list, but no luck so far. How to retrieve a repeating node element using the Xpath expression above?
Any help will be appreciated. Thanks!
Request clarification before answering.
Hello Gabriel,
There are multiple ways to do it and below are the few.
1) Using Content Modifier.
Input XML:
<Root>
<Record>
<Name2>Ravi</Name2>
<ID>B3</ID>
</Record>
<Record>
<Name2>Rohit</Name2>
<ID>B1</ID>
</Record>
<Record>
<Name2>Ram</Name2>
<ID>B2</ID>
</Record>
<Record>
<Name2>Shyaam</Name2>
<ID>B5</ID>
</Record>
</Root>
Condition:
string-join(/Root/Record/ID, ",")
2) Using Groovy Script:
Refer the below blog
https://blogs.sap.com/2016/05/09/xpath-expressions-and-groovy-script-in-hana-cloud-integration/
Regards,
Sriprasad Shivaram Bhat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
60 | |
10 | |
8 | |
8 | |
7 | |
6 | |
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.