send survey after every 10 closed incident?

ash36
Kilo Contributor

I need to send incident survey on repeated interval of 10 incident closure. I tried setting the trigger condition based on Number ends with 0, but that's not a concrete solution. Has anyone done this before?

Help much appreciated, thanks !

27 REPLIES 27

No, the sys_id in this BR corresponds to that of the trigger condition. Should I try putting the sys_id of my survey instead?


Rakesh Mamidi
ServiceNow Employee
ServiceNow Employee

Please keep sys_id of the survey and take a look


Nopes, didn't work..


It stopped sending the survey emails also.


Rakesh Mamidi
ServiceNow Employee
ServiceNow Employee

its working for me.



One typo in script, table name has to be in ''



var lastTriggerID = this.lastSurveyTakenFor('incident','87186844d7211100158ba6859e610378'); //Table Name and Metric type.