cancel
Showing results for 
Search instead for 
Did you mean: 

How to get name of the source field in Message Mapping

arijit_mukherjee2
Participant
0 Kudos

Hello Experts,

Do any one know that how to get the name of the XML element in the incoming payload to PI so that can be passed to output.

I have an incoming XML like below.

<Records>

<Name>

<ID>1</ID>

</Name>

<Records>

I am generating an output where I need to get the exact name of the field which came inside </Name>. In above example it is ID but that may not be same all the time.

Appreciate your help!!

Thanks,

Arijit

Accepted Solutions (1)

Accepted Solutions (1)

former_member181985
Active Contributor
0 Kudos

Hi Arjiit,

May be you can try with returnAsXML on <Name> node from it's context menu and then use normal java string api in a UDF to identify the field name within <Name> node and return it for target

//BR,

Praveen Gujjeti

Answers (1)

Answers (1)

iaki_vila
Active Contributor
0 Kudos

Hi Arijit,

You can use an XSL with the instruction copy-of-select.

Regards.