Stop Case Transfer Notification

Vijay Baokar
Kilo Sage

Hi Folks,

I need some suggestion/solution on below scenario , however this is OOTB behavior but I need to bypass this notification.

When HR case is transferred with new case number , system should not trigger transfer case notification as below

 

VijayBaokar_0-1696605074542.png

Since above additional comment was added to original case hence system is sending below notification which needs to be suppressed.

 

VijayBaokar_1-1696605224192.png

 

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@Vijay Baokar There are a couple of ways by which you can skip the notification from triggering.

 

1. Approach 1: In this approach you will simply prevent the case transfer comment from getting added on to the case. This will prevent the Comments added notification from triggering. Create a business rule on sn_hr_core_case as follows.

Screenshot 2023-10-06 at 10.08.27 PM.png

Screenshot 2023-10-06 at 10.09.33 PM.png

 

2. Approach 2: If you want the additional comment related to transfer case but still do not wish to trigger notification than there is another approach.

Navigate to script includes and find hr_Case (sn_hr_core.hr_Case) script include.

Screenshot 2023-10-06 at 10.03.13 PM.png

 

Navigate to method sendEvents and replace the line 273 with the following

			if(!this._isCommentMadeFromConnect()&&!_gr.comments.startsWith(gs.getMessage("Case was transferred to {0}",_gr.number)))

Screenshot 2023-10-06 at 10.01.29 PM.png

 

Save the changes.

 

Caution: This is an OOTB script include, making changes here will prevent it from getting upgraded in future releases. Also, making changes in this script include will trigger Application Restricted Caller Access Records, which you will have to set to Allowed again from Application Restricted caller access module.

 

Choose the approach which fits best in your use case.

 

Hope this helps.

View solution in original post

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@Vijay Baokar There are a couple of ways by which you can skip the notification from triggering.

 

1. Approach 1: In this approach you will simply prevent the case transfer comment from getting added on to the case. This will prevent the Comments added notification from triggering. Create a business rule on sn_hr_core_case as follows.

Screenshot 2023-10-06 at 10.08.27 PM.png

Screenshot 2023-10-06 at 10.09.33 PM.png

 

2. Approach 2: If you want the additional comment related to transfer case but still do not wish to trigger notification than there is another approach.

Navigate to script includes and find hr_Case (sn_hr_core.hr_Case) script include.

Screenshot 2023-10-06 at 10.03.13 PM.png

 

Navigate to method sendEvents and replace the line 273 with the following

			if(!this._isCommentMadeFromConnect()&&!_gr.comments.startsWith(gs.getMessage("Case was transferred to {0}",_gr.number)))

Screenshot 2023-10-06 at 10.01.29 PM.png

 

Save the changes.

 

Caution: This is an OOTB script include, making changes here will prevent it from getting upgraded in future releases. Also, making changes in this script include will trigger Application Restricted Caller Access Records, which you will have to set to Allowed again from Application Restricted caller access module.

 

Choose the approach which fits best in your use case.

 

Hope this helps.

Hi Sandeep,

I preferred the 2nd approach.