Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 05:40 AM
Hi @Dizy M,
Please follow the steps below
- Create a new Event (Event > Registry) on Assessment Instance table
- Create a new Email > Notification for the assessment instance table) and associate the above event
Ensure your notification has
- Send to event Creator true
- Event parm1 contains recipient as true
- Create schedule job which runs daily and checks the records and sends notification to the user
Script:
sendNotification();
function sendNotification(){
try{
var gr = new GlideRecord('asmt_assessment_instance');
gr.addEncodedQuery('stateINready,wip^userISNOTEMPTY');
gr.query();
while (gr.next()) {
gs.eventQueue('event_name', gr, gr.user, '');
}
}
catch(ex){
gs.info(ex);
}
}
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.