This website uses Cookies. Click Accept to agree to our website's cookie use as described in our Privacy Policy. Click Preferences to customize your cookie settings.
HI @parthiban.jks
I will try to explain to you the best I can do
$VARIABLE_ID.split(',').reduce((acc, cur, index) => acc.replaceAll([cur], $VARIABLE_VALUE.split(',')[index]), $TRANSLATION_ID)
.reduce() is an array function which accepts 2 argument...
Hi @RaymanPrince
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(',')[...
Hi @Ajay_Chawda
Try to use the following expression and let me know if this helps you
$.entries().filter(item => $group.findIndex(x => x.name == item[0]) != -1 ).reduce((acc, cur) => acc.extend({[cur[0]]: cur[1]}),{})
BR
Kristijan