Business Rule to update category

tsoct
Tera Guru

I have the below business rule that updates Category in the RITM based on a variable. The script below works fine when the user language is English. However, for users who have French set as lamguage, a new choice appears (in red) instead of selecting from the existing selection (in green). How can this be resolved?

 

 

 

(function executeRule(current, previous /*null when async*/ ) {

    var category = current.variables.category.getDisplayValue();

    if ((current.u_category == '')){
        current.u_category = category;
    }

})(current, previous);

//u_category is a string field with Choice in sys_choice

 

 

tsoct_0-1718732606234.png

 

 

5 REPLIES 5

Hello @Bhargav Padarth ,

 

toString() also returning sys_id..