August 2017
Intermediate to advanced
1330 pages
56h 17m
English
Let's create the new Script Action that reacts to our new event.
var tsk = new GlideRecord('x_hotel_maintenance');
tsk.newRecord();
tsk.room = current.sys_id;
tsk.assignment_group.setDisplayValue("Housekeeping");
tsk.short_description = "End of reservation room cleaning";
tsk.insert();
This script is fairly straightforward. It creates a new GlideRecord object that represents a record in the Maintenance table. The fields are initialized through newRecord, and the Room field is populated with the sys_id value of current ...
Read now
Unlock full access