- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2015 08:19 AM
Hello everyone,
Kindly help me in knowing how to trigger an E-mail notification to a manager/group when user dissatisfy the survey.
Kindly explain step by step by step as i am not familiar with the notification part much.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015 04:12 AM
This is our Survey form and when user submits this form the incident form get updated as follows :
So, now i want when user dissatisfy or very dissatisfy the survey, an email should be sent to the Grroup/Assignee/manager.
Kindly let me know if you got answer of your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2015 10:39 AM
Hi Shikha,
You could create a notification on the survey instance table (fuji: asmt_assessment_instance). I think you would need to script the condition to only run on a dissatisfied user response. this scripted condition would work together with any other condition you set in the condition builder.
In order to create the scripted condition you could create something like this:
var gr = new GlideRecord('asmt_metric_result');
gr.addQuery('instance', current.sys_id);
gr.addQuery('metric.question','<add info to match survey question>')
gr.query();
if(gr.next()){
if(gr.string_value == '<add value for dissatisfied>'){
return true;
} else {
return false;
}
}
return false; //catchall
you could also adjust the query to add the dissatisfied value directly in the query search. This would return a record if found, and not return any records if not found.
It might not be the most efficient way to do this, but it should work regardless.
Of course you could also trigger this from a business rule(with an event) in which you create your condition/business logic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015 03:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015 03:47 AM
Hi Shikha,
Do you write survey responses / comments to incidents, because i see you configured the notification on the incident table. The survey instances are configured on a different table, the asmt_assessment_instance table. The actual responses are configured on the asmt_metric_result table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2015 04:12 AM
This is our Survey form and when user submits this form the incident form get updated as follows :
So, now i want when user dissatisfy or very dissatisfy the survey, an email should be sent to the Grroup/Assignee/manager.
Kindly let me know if you got answer of your question.