Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

email notification to send survey responses to the group once the survey is submitted by user.

sowmya25
Tera Contributor

email notification that will send when a survey is submitted with certain answers.   In the email notification, I would like to put the all survey responses.

4 REPLIES 4

Mark Manders
Mega Patron

What did you already try and where are you getting stuck?

This really reads like a 'customer gave me a requirement, please do my work for me'.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Hi, 

I have written  the below mail script and also notification (record inserted) on asmt_result_result table. The notification is being sent more than once( or one per each question)

var gr = new GlideRecord("asmt_metric_result");
gr.addQuery("instance", current.instance);
gr.query();
while(gr.next()) {
  template.print(gr.metric.getDisplayValue() + ":   " +gr.string_value + "<br />");
}

@sowmya25 ,

 

Navigate to "System Notification " -> Notification



1 Choose the table "asmt_assessment_instance" .

2  Choose   condition   "updated " and add condition "state"   is "Complete" .

3. Whom to Send add the group for the group you want to Send

 

Regards,

Shyamkumar

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

Hi Shyam,

 

How can I send the  survey response answers in the body of the email?