Send Notification to Assignment group managers , If survey rating is given 1,2,3 for incidents

tarun43
Tera Contributor

Hello everyone

 

I have a requirement that if survey rating is given 1,2,3 then assignment group manager should recieve notification.

survey data is stored on metric result table(asmt_metric_result) . 

the notification should contain the survey response submitted by end user.

 

If anyone has any idea , please provide your valubale inputs.

 

Thanks,

Tarun

1 REPLY 1

Community Alums
Not applicable

Hello @tarun43 

You'll need to create a business rule and inside the business rule call event to trigger the notification to the assignment group manager. Here's a step-by-step approach:

Step 1: You may create a business rule to check if a survey rating is between 1 and 3. When the condition is met, you can trigger a notification.

Step 2: In the Advanced section (Business rule), write the below code:
if (current.assignment_group.manager) {
     gs.eventQueue('send_notification_to_manager', current, current.assignment_group.manager.email, null);
}

Step 3: Use the created event in the Notification and add relevant information inside the email body.

If my answer has helped with your question, please mark my answer as accepted solution and give it a thumbs up.

Best Regards