Create a Task/Survey based on survey response

Talat
ServiceNow Employee
ServiceNow Employee

I've a requirement where I need to create a task/case if the customer satisfaction survey result for a question falls a certain threshold.

Any idea where I can start?

Thanks

3 REPLIES 3

Gaurav Bajaj
Kilo Sage

Hi,

You can write a after insert BR on survey instance table (asmt_assessment_instance) with a condition that state is completed i.e. response has been recieved.

Then you can use Gliderecord query on asmt_assessment_instance_question tbale to fetch all varibales and their values based on the reponse. You can apply own logic for threshold in it and finally is its acheived, you can create a task through the same BR itself.

 

Script will look like this

find_real_file.png

find_real_file.png

Please mark it correct/helpful based on the response.

Thanks
Gaurav

Talat
ServiceNow Employee
ServiceNow Employee

Thanks Gaurav. I will try this and get back to you/

Gaurav -  Did you ever get this figured out?  What was the result?