Forum Discussion
Hi @vkandalam
If you move the first Mapper Snap inside the child pipeline, you will be able to access the documents from the XML Parser in Mapper 1, by accessing the $original object.
BR,
Aleksandar.
- JensDeveloper4 years agoContributor II
you should use the function mapKeys in a mapper snap to get the key value and rename it.
Inside the mapper snap you should use this expression:
$[‘soapenv:Envelope’][‘soapenv:Body’][‘ns1:MT_SWE_FI_PEGA_ABAON’].mapKeys((value, key) => key == “CLIENT” ? “CLIENTID” : key)This expression will first check every key if it equals the value “CLIENT” and if true it will rename it to whatever you want to rename it to. If false the key name is not changed
And give as target path the path of the original one until the object that contains CLIENT
$[‘soapenv:Envelope’][‘soapenv:Body’][‘ns1:MT_SWE_FI_PEGA_ABAON’]The result:
Regards
Jens
- aditya_gupta414 years agoContributor
Thanks Jens. It worked