We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to Trigger Survey from Script?

naina5
Tera Contributor

How to Trigger Survey from Script any one have any idea on this.

2 REPLIES 2

Ankur Bawiskar
Tera Patron

Harmeet2Singh
Tera Expert

use: 

new sn_assessment_core.AssessmentCreation()).conditionTrigger(current,sys_id)
current is the object on which you want to attach assessment, and sys_id is the sys id of trigger condition created for assessment.