Is there any way to dynamically update an expression rule? I have a process that

Is there any way to dynamically update an expression rule? I have a process that runs daily, queries our database and updates constants accordingly (one constant for a key, another for a value). This works fine. However, to date, when these constants are updated, I have to manually update an expression rule that is used in other places within my application that displays the value based on the key (lots of nested if() statements). So, is there a way to update this expression rule dynamically when the constants are updated?...

OriginalPostID-60667

OriginalPostID-60667

  Discussion posts and replies are publicly visible

Parents
  • Hi Dylan. There is no way to update an expression rule through process. You might be able to write a custom smart service to do this.
    However I am interested in your key/value use case. One easy way to do key/values is with parallel arrays: one constant (usually string array or int array) of keys, one constant array of values. Then you can use displayvalue() to look up any key, and not have to write if statements for each case. Is this an option for you?
Reply
  • Hi Dylan. There is no way to update an expression rule through process. You might be able to write a custom smart service to do this.
    However I am interested in your key/value use case. One easy way to do key/values is with parallel arrays: one constant (usually string array or int array) of keys, one constant array of values. Then you can use displayvalue() to look up any key, and not have to write if statements for each case. Is this an option for you?
Children
No Data