Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Re-send an expired assessment, from a demand

Clement Dos San
Tera Contributor

Hello,

A user missed the due date assessment and wants to take it again, from a demand.
How I can resend him this assessment ?

Thank you

1 ACCEPTED SOLUTION

Mike_R
Kilo Patron

You can try this in a background script

var sur = new GlideRecord("asmt_assessment_instance");

sur.get('sys_id_of_assessment_record');

sur.state="wip";

sur.setWorkflow(false);

sur.update()

View solution in original post

2 REPLIES 2

Mike_R
Kilo Patron

You can try this in a background script

var sur = new GlideRecord("asmt_assessment_instance");

sur.get('sys_id_of_assessment_record');

sur.state="wip";

sur.setWorkflow(false);

sur.update()

Clement Dos San
Tera Contributor

I was searching a solution within ServiceNow first , but updating the due date is working.

Thank you