Trigger survey from schedule job

Ujjwal1
Tera Contributor

hi contributors,

i have requirement, to send survey mail , half yearly.

survey  to be triggered to all unique requestor whose requests is closed ,  in last half year.

 

survey is already designed in survey designer. Please suggest on, how to trigger it with above mentioned logic.

 

Thanks

Ujjwal

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Ujjwal1 

assuming survey is correctly configured etc on correct table

you can use scheduled job which runs daily and does this

1) get list of all Tickets closed in last 6 months

2) get the unique requestor and then use the script from below links to trigger survey from script

sharing few links for help

How do I create survey instances from a scheduled job?

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

thanks @Ankur Bawiskar for response.

 

can you suggest on setting schedule job 
1. runs half yearly

1. runs quarterly ( like job runs at 1st day of each quarter)

 

 

@Ujjwal1 

check this link

Scheduled Job to run on a quarterly basis 

for half yearly you should decide the date and select that in scheduled job

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

Running the job daily is a smart approach, as it ensures each ticket reaches its 6-month mark precisely, instead of relying on predefined half-yearly or quarterly schedules. Here’s a guide to configuring Scheduled Jobs in ServiceNow.

Your feedback makes the community stronger! If you found this helpful, marking it as the correct answer helps others.
Stay awesome,
Roshnee Dash