Assignment rules not working on the case form

suresh91
Tera Guru

Hi All,
I have created 2 assignment rules with different conditions and different execution orders. But the case is still assigned to the group which having the lowest order assignment rule. If all the conditions are met, then it should be assigned to that group, but it's not. Please check the screenshots below

 

suresh91_1-1752580995727.pngsuresh91_2-1752581228841.png

Could you please let me know how to fix it, or am I missing anything here?

KR,
Suresh

 

8 REPLIES 8

Hi @Anand Kumar P 
Thanks for your response.
I have looked into the client script, BR and data lookup definitions on the case table, but could not find anything.
I can clearly say, it is executing the assignment rules because I have added some logs in the script of assignment rules and it printing the logs with zip as 17300. But even though in script logs it showing the correct zip 17300 but still executing the one which having zip code between 1000 and 2999. It should not be the expected behavior right?

suresh91_0-1752630601255.png


KR,
Suresh

Hi @suresh91 ,

 

Looks like the issue is with current.assignment_group.setDisplayValue("services dresden-werkstatt")

 

looks like you have missed " in the setDisplayValue method

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

Hi @Chaitanya ILCR 
Thank you for your response.
That is fine. It's working with that method for those 2 scenarios. But the issue is, I have around 80 assignments routing records which having same country "DE", type of request and having different zip codes that needs to assign different groups (80). In that case, it's not good to write 80 conditions in assignment rule script. 

suresh91_1-1752637753309.png

 

 


But, the conditions should work right (OOTB) even though if we not used the script.

KR,
Suresh 

you can use one assignment rule and add all the logical to a script include.  then call the function in script in assignment group.  To reduce the condition in code, you can include decision table.

For more detail, please refer to:

Exploring decision tables