From where is Event sn_hr_core_case.commented triggered when there is a comment in an HR Case (HRSD)

Dinh Nguyen
Kilo Sage

Hello everyone,

Every time I comment on an HR Case ticket on the portal, an email is sent through the event sn_hr_core_case.commented. However, I don't know where this event is triggered from. I have checked both Business Rules and Script Includes but couldn't find it. If anyone knows, please help me.
Thank you so much.

DinhNguyen_0-1753175402977.png

 

1 ACCEPTED SOLUTION

Hi @Dinh Nguyen ,

 

That is the BR. you can see there are no conditions in the BR and it's calling the script include and the line 278's block is satisfying and it's firing the event 

 

the event is being fired when the comments are added

 

the reason why it doesn't send notification on "Close Complete" and "Close Incomplete" states in these states are inactive states (case will be active=false)

 

and if you look at the OOB notification conditions the case should be active in order to trigger the email

ChaitanyaILCR_0-1753240057040.png

 

you can try adding a comment in a Close Complete case and check the event logs 

you will find the event there

 

hope this clears things out

 

 

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

Regards,
Chaitanya

View solution in original post

7 REPLIES 7

Hi @Chaitanya ILCR , @Ankur Bawiskar ,

Thank you for your response.
I have checked the BR "Send sn_hr_core_case events". It seems that this BR is not correct.
In fact, only records with a State other than "Close Complete" or a State other than "Close Incomplete" send email through "sn_hr_core_case.commented" event when a comment is made. However, the processing logic of the BR "Send sn_hr_core_case events" does not seem to satisfy this logic.

Hi @Dinh Nguyen ,

 

That is the BR. you can see there are no conditions in the BR and it's calling the script include and the line 278's block is satisfying and it's firing the event 

 

the event is being fired when the comments are added

 

the reason why it doesn't send notification on "Close Complete" and "Close Incomplete" states in these states are inactive states (case will be active=false)

 

and if you look at the OOB notification conditions the case should be active in order to trigger the email

ChaitanyaILCR_0-1753240057040.png

 

you can try adding a comment in a Close Complete case and check the event logs 

you will find the event there

 

hope this clears things out

 

 

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

Regards,
Chaitanya

Hi @Chaitanya ILCR , @Ankur Bawiskar ,

Thank you so much for helping me.