Hi Experts,
Below Block-A code line is working fine, whereas Block-B is not working even though "tointeger(index(rule!AB_getReviewKey(key: 100),"reviewkey",null()))" is returned 2.
Any comments please.
----------------------- Block-A -------------------------
a!localVariables(local!reviewkey: 2,local!excludeKeys: if(local!reviewkey = 2,{ 1, 3, 4},if(local!reviewkey = 5, { 1,3,4,5,6 }, {1,2,3 })),local!excludeKeys)
----------------------- Block-B -------------------------
a!localVariables( local!reviewkey: tointeger(index(rule!AB_getReviewKey(key: 100),"reviewkey",null())), local!excludeKeys: if( local!reviewkey = 2, { 1, 3, 4}, if(local!reviewkey = 5, { 1,3,4,5,6 }, {1,2,3 }) ), local!excludeKeys)
Discussion posts and replies are publicly visible
Are you sure
tointeger(index(rule!AB_getReviewKey(key: 100),"reviewkey",null()))
If I pass 2 or 5, I am able to see the local!excludeKeys with required array o/p, whereas when I use the expression rule it is not working.
In my expression rule I am using .data at the end and when it test I was getting integer output only.
Is some thing wrong with my any type conversion here.