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

read field with namespace segment xpath cloud integration

mark_fryu
Participant
0 Likes
359

hi,

I need to read the value of the field "message2" from a segment, with Cloud Integration.

this is the body:

<message1 xmlns="test_message1">

<message2>test_odv<message2>

</message1>

I tried //message2 but not working probably for the xmlns.

Does anyone know what the formula is to read the "message2" field?

 

Accepted Solutions (1)

Accepted Solutions (1)

anoukvandenengel
Participant
0 Likes

Hello @mark_fryu,

It is indeed related to the namespace. You can add a namespace mapping in the Runtime Configuration tab of your integration flow, for example "xmlns:test=test_message1"

anoukvandenengel_1-1725601237963.png

And then refer to this namespace in your xpath, i.e.: "/test:message1/test:message2"

anoukvandenengel_0-1725601163004.png

I hope this will help you!

Answers (0)