Notification on low survey scores

Mickey_Cegon
Tera Expert

I've been asked to create a notification for when a survey is returned with a low score. We are using Best Practice - Task Survey Management. Has anyone set up something similar? Thanks for any suggestions!

17 REPLIES 17

Daniel Draes
ServiceNow Employee
ServiceNow Employee

Hi Nikita,
just found your post and thought this sounds pretty close to what I try to achieve currently. I followed your advise in creating the business rule as described.

Now, the business rule gets triggered just fine, but works only if I manually switch a task_survey from 'requested' to 'complete'. If a survey is taken, this will also trigger the business rule, but the rule will not find any responsed. I tried before and after trigger, no luck with either one.

Here is my code to find the responses:

var responses = new GlideRecord('survey_response');
responses.addQuery('instance', current.instance);
responses.query();

while(responses.next())
{
if (responses.answer_integer>0)
{
....
}
}

Can you spot why this not works in the process of taking the survey?

Thanks,
Daniel


Hi Daniel,


We are trying to do the same, would be able to share the business rule script



Many Thanks


Shoaib


Hi ,

I have same requirement, i have created one survey for close incident and now i want when user gives low score feedback(dissatisfied) at that time one mail should send to manager of the group.

could you please help how to fix this.

Thanks

Daniel Draes
ServiceNow Employee
ServiceNow Employee

Hi,

I found out, that by moving the business rule to the suvey_respone table I can get the data needed. However, this rule will run for each response and needs some more logic to identify wheter or not the response set is complete.

Daniel


nikita_mironov
Kilo Guru

Hi Daniel
The Survey Processor first(!) creates survey instance, next puts its survey_response records. Running your rule asynchronously allow the necessary delay for survey_response records creation.