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.

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

Sumanta Sathua
ServiceNow Employee
ServiceNow Employee

You might need to write schedule jobs for this .


The SN Nerd
Giga Sage
Giga Sage

Unless you have number generation turned off, some numbers will be skipped so checking for numbers ending in '0' won't give you 1 in 10.



If you think about it, every 10 closed is 1 in 10, which is 10%.



I would recommend using the OOB functionality with a value of 10% to send surveys.


It will give you the same outcome.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Yes, I have turned off the number generation, but not sure if the way you told to setup will work. As far as I am aware, the % here sets the probability that the survey will be sent or not when the condition is met. For example if I set it to 25%, a probability of 25% does not mean, that for 4 incidents 1 survey will be generated. It means that for every single incident (where the conditions are met), there is a 25% chance that the survey will be generated.



Thanks


dvp
Mega Sage

Write a business rule on incident when the incident state changes to closed and call a global script include and do counting there. Once the count reaches 10 fire an event