12-14-2018 01:03 AM
Hi Team,
I have a requirement to replace the fields which are in list of objects. Please find the details below:
Please find the input JSON below:
I need to replace the CurrencyCode value from 2nd highlighted to 1st highlighted (i.e. INR to IndianRupee and AUD to AustralianDollar). Remaining fields in 1st highlighter should remain as is.
Thanks in Advance! Quick help is highly appreciated.
Gopi.
12-15-2018 01:47 PM
You can use replace expression to perform your conversion logic at ease but what is not clear is if you like to have this done dynamically, what exact mechanism would you like it to do? Based on the position of the array? or there are some other logic or fuzzy logic (less ideal)?
12-16-2018 09:50 PM
Thanks @aleung for your reply… It should be done dynamically based on the position of the array. The $input1_shoppingHistoryList.shoppingHistory is nothing but the transformed values of the $shoppingHistoryList.shoppingHistory based on the sql mapping table.