Hi,
May I know how to maintain a key value pair values in a constant and refer the constant in an expression rule and pick the respective value by passing the key name.
Eg: "72"-"ABC"
"75"-"DEF"
"80"-"GHI"
I need to get the value "ABC" by passing "72" as input. Please suggest.
Regards,
Balaji.R
Discussion posts and replies are publicly visible
One suggestion where we can use a constant to solve this.
1. We can create a constant of type Text Array and give the values like [key=value]
[72=ABC] where 72 is the key, = is the separator and ABC is the value[75=DEF][80=GHI]
Refer Screenshot below
2. To access these values from a rule, we can use the function keyval()
Refer: Link to Documentaion keyval()
The following code takes key as input and returns the value:
keyval(joinarray(cons!test_keyval,""),ri!key,"=","]")