Forum Discussion
You can try to use the expression below in a mapper
$VARIABLE_ID != null && $VARIABLE_VALUE != null && $.extend({ 'TRANSLATION_ID': $VARIABLE_ID.split(',').reduce((acc, cur, index) => acc.replaceAll([cur], $VARIABLE_VALUE.split(',')[index]),$TRANSLATION_ID) }) || $
- RaymanPrince4 years agoNew Contributor II
Hi @Cele
Many Thanks
The solution works as expected. - parthiban_jks4 years agoNew Contributor II
Hi Cele,
Thanks you so much for the quick reply. Could you please explain about the reduce part in the above expression? I would be really helpful for us
Thanks,
Parthiban S