How to cancel Assessment Survey without deleting Parent Survey RecordIssue If some surveys were sent by mistake or the customer wants to recall some assigned surveys, please try below process. Update the [due date] field of the Assessment instance(asmt_assessment_instance) records to a previous date. 2. Run the script defined in "Cancel Expired Assessment" scheduled job to change all the expired Assessment Survey records to Cancelled. cancelExpiredAssessments(); function cancelExpiredAssessments(){ var gr = new GlideRecord("asmt_assessment_instance"); gr.addEncodedQuery("stateINready,wip"); gr.addEncodedQuery('metric_type.evaluation_methodNOT INattestation_v2,risk_assessment,vdr_risk_asmt'); gr.addQuery("due_date", "<", new GlideDate().getValue()); gr.query(); while(gr.next()){ gr.state = "canceled"; gr.update(); } }