rad2
Mega Sage

Hello,

An introductory article on the Survey Management basic features in New York release. Following are the steps involved in setting up a new custom survey using survey Designer :


- Creating a Survey
  1. Application navigator --> Survey --> Survey Designer
  2. ServiceNow makes it really easy with the survey designer. we can select the type of question we would want to ask the user. I have created one with 2 questions. 

 a. Feedback - type - String 
 b. Rate - type - Numeric Scale

  find_real_file.png

  3. Once the survey is saved, we have to publish it. It can be done from a survey designer or from the survey definition form view. The survey must be published for users to access it or complete it.


- Adding conditions 
  1. user(s) receive the notification when a condition is satisfied.
  2. navigate to Survey --> Administration --> Trigger Conditions.
     The assessment would be the survey that we have created in the earlier step
     User field represents the user who would receive the notification
    The condition can be set accordingly. For ex: when a service is delivered or a request is completed etc.

    find_real_file.png


- Email Notification
  ServiceNow provides a default Survey Email Notification that would be triggered when a survey condition(trigger condition)    is satisfied.

  Name: Survey User Invite
  Table: Assessment Instance [asmt_assessment_instance]

  Email template/ Email layouts can be changed to add details as required.
  To create a custom Survey Email specific for the survey created, we can simply copy the existing notification and add our conditions in the When to Send tab. For example as below

   find_real_file.png

- Redirecting the User to Service Portal.
  Default Survey Notification URL has the link that would redirect to the survey page on ServiceNow instance. In order to      change the URL to the service portal, we can change the script include AssessmentUtils and add the below function

getInstanceLinkHTMLBooking : function(instanceGr) {
  var instanceURL = gs.getProperty("glide.servlet.uri");
  url = instanceURL + 'sp?id=take_survey&instance_id=' + instanceGr.sys_id;
  return url;
},


  Call this script include method in the mail script of the email notification that we have created earlier. for ex:

Hello ${user},

Thank you!
<mail_script>
var html = new AssessmentUtils().getInstanceLinkHTMLBooking(current);

template.print('<p><font face="helvetica">');
template.print('<a style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; background-color: #f13632; border: 1px solid #0368d4; display: inline-block; padding: 5px" href="' + html + '">' + 'Click here to give us your feedback' + '</a>');
template.print('</font></p>');
</mail_script>

Thank you!

 

- Survey Response
  - the survey result can be viewed in survey responses. navigator Survey --> Survey Responses
  - The record assigned to the instance can be fetched from the assessment instance as shown in the screenshot

find_real_file.png

 

Hope this helps!!

Comments
pagdenl
Giga Expert

what if the survey needs to go to a group.  In the trigger condition it is asking for a user, not a group. Then what???

Thangamani
Giga Contributor

Hi pagdenl,

I have a similar requirement to trigger a survey to a specific group. Please share if you got to know the solution.

 

Thanks in Advance

 

Dayane Costa1
Tera Contributor

Hi guys, I have a question, can you help me? 


I want to send the survey to a user registered in a specific field in my catalog.

This field is directed to the "sys_user" table


how do I do that?

Example:
Requested by (sys_user) - Native field:
Opened by(sys_user) - Native field:

Direct Leadership (sys_user) - field created for us, i want to send the survey to the person registered in this field:

Yee Man Chun
Tera Expert

Hi All,   I have configured a survey trigger by condition state set to resolved. However, realize that the survey trigger is not a notification by sending an email to the caller. Does anyone know how to configure the automated survey send through email after the case mark as resolved? Think should create a notification to trigger the survey email to the caller. Appreciate it if anyone could help me with this.

lakshmi9
Tera Contributor

Hi @Yee Man Chun 

 

my requirement is bit different.

  1. when an incident is resolved by dynamic "XX Support Group" assignment group that a feedback survey is sent to the incident's 'Caller'.
  2.  when the caller of an Incident is always sent a survey once the Incident is Resolved
  3. The Affected User should not receive more than 1 survey per week. (7 days Assessment Duration) 

It would be so helpful, to help on this requirement.

Version history
Last update:
‎01-16-2020 04:36 AM
Updated by: