We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Trigger Survey from Script

Dark Kei
Tera Expert

Is there a way to trigger survey from a script?

2 REPLIES 2

sandeepdutt
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

@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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader