is it possible to change or modify the expiration date in survey?

suresh91
Tera Guru

Hi everyone,

We have requirement to make the survey link expire for 30 days. but in system it only shows daily, weekly, Monthly.

How to configure this survey to expire in 30 days. We also have a trigger condition that the survey will be triggered only when Incident is resolved, and i have kept the repeat interval for 30 days as well as duration in survey configuration as 30 days. 

After this the due date shows after 30 days from the creation but expiration is the same date as created date. because of the condition given in docs, that the scheduled period is set to no limit. 

suresh91_0-1699424551873.png

 

Please guide me if its possible to make the expiration date to 30 days as well as the due date should be same 30 days. 

 

Thanks,

1 ACCEPTED SOLUTION

Hi @suresh91 

If you have the Trigger Condition, the Due Date will handle the expiration of the Survey.

URL: https://<instance_name>/sys_trigger.do?sys_id=e8785d109f233100736af84bc42e70ab

Ref: KB0790010 - How are surveys cancelled by System

 

When you use the Schedule periods, it will generate new survey instance for each survey user at the beginning of the new schedule period.

You can check the corresponding scheduled job right below which generated by system. It's calling the createAssessments function and you can see Trigger time as well.
(new SNC.AssessmentCreation()).createAssessments('<survey_definition_sys_id>');

 

Cheers,

Tai Vu

View solution in original post

3 REPLIES 3

Tai Vu
Kilo Patron
Kilo Patron

Hi @suresh91 

The Expiration Date field on a survey instance is determined by the setting of Scheduled period of the Survey Definition.

The Due Date field is calculated based on the Assessment Duration field in the Survey Definition.

Ref: KB0855826

 

So if you'd like to have 30 days after for Expiration date, you can set the Scheduled period as Monthly.

Sample below.

TaiVu_0-1699429466342.png

 

Let me know if it works for you.

 

Cheers,

Tai Vu

 

Hi Tai vu,

 

Thanks for your response.

 

But based on suggestion given in servicenow doc, they mentioned like below.

suresh91_0-1699429784429.png

 

I have trigger condition in survey definition and declared scheduled period as No limit. Do i need to change it to monthly still? is it cause any issues if change to monthly?

 

Thanks

Hi @suresh91 

If you have the Trigger Condition, the Due Date will handle the expiration of the Survey.

URL: https://<instance_name>/sys_trigger.do?sys_id=e8785d109f233100736af84bc42e70ab

Ref: KB0790010 - How are surveys cancelled by System

 

When you use the Schedule periods, it will generate new survey instance for each survey user at the beginning of the new schedule period.

You can check the corresponding scheduled job right below which generated by system. It's calling the createAssessments function and you can see Trigger time as well.
(new SNC.AssessmentCreation()).createAssessments('<survey_definition_sys_id>');

 

Cheers,

Tai Vu