cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Replacing Fields which are in List of Objects

GBekkanti
New Contributor III

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:
listValueCommunityedited

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.

6 REPLIES 6

aleung
Contributor III

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)?

GBekkanti
New Contributor III

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.