Different weight in notification but sometimes its send both somtimes send ignored.

Jeck Manalo
Tera Guru

Hello,

 

Im wondering why the email still sent both even they are different weight.

In this photo below the RITM011487 is correct while the RITM011488 is still sent both even they are different notification weight.

 

What can cause this problem ?

 

JecksonManalo_0-1699938516368.png

 

1 ACCEPTED SOLUTION

1st notif weight is 50

2nd is 10.

 

I think I already found a solution for this. I do system property instead of using weight so that the one notification will not be sent already.

 

var approvalrequest = gs.getProperty('vsh.approvalrequest.exception').split(',');
answer = true;
for (var i in approvalrequest){
if (approvalrequest[i] == current.sysapproval.cat_item)
answer = false;
}

View solution in original post

9 REPLIES 9

Community Alums
Not applicable

Hi @Jeck Manalo ,

Did check the weight of two notifications ? if yes, kindly mention their weights.

Community Alums
Not applicable

@Jeck Manalo ,

Actually,

1. Notification with weight value =0 are always sent.

2. If notifications have non-zero weight, the one with highest value is sent 1st.

3. if notification have same weight and that is the highest value , all the notifications will be sent.

1st notif weight is 50

2nd is 10.

 

I think I already found a solution for this. I do system property instead of using weight so that the one notification will not be sent already.

 

var approvalrequest = gs.getProperty('vsh.approvalrequest.exception').split(',');
answer = true;
for (var i in approvalrequest){
if (approvalrequest[i] == current.sysapproval.cat_item)
answer = false;
}

KhushbooR
Tera Contributor

Hello 

I am facing same issue even though I have put weight 10 and 20 both of them are getting ignored. I need to achieve this on demand management so I am trying to understand the script you did above.

Hello,

 

In my scenario I have 2 notification which triggered both in approval table.

 

what you need to do is here.

 

1. Create a system property and on the value input the sysid of approval record for the specific catalog item.

2. Next is you need to input the code given to the advance condition for the notification that you don't want to trigger on that catalog item.

3. In this case the 1 notification will never send out since there is an exception you created that its not allow to trigger when they are on list of of system property value.