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.

Trigger Survey from Script

Dark Kei
Tera Expert

Is there a way to trigger survey from a script?

2 REPLIES 2

SANDEEP DUTTA
Tera Patron
Tera Patron

HI @Dark Kei ,

Script , Yes, which is part of a scheduled job.

You can Create instances using new SNC.AssessmentCreation().createAssessments() in the Scheduled Job.

Something like : https://www.servicenow.com/community/developer-forum/quot-create-user-survey-quot-ui-action/m-p/2163...

 

Thanks,
Sandeep Dutta

Please mark the answer correct & Helpful, if i could help you.

Ankur Bawiskar
Tera Patron
Tera Patron

@Dark Kei 

yes it's possible.

check these links

How do I create survey instances from a scheduled job?

https://www.servicenow.com/community/developer-forum/quot-create-user-survey-quot-ui-action/m-p/2163...

https://community.servicenow.com/community?id=community_question&sys_id=f52347e1dbd8dbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=0d980b21db5cdbc01dcaf3231f96...

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader