You need to populate the Incident Date and Status fields in the Room Incident table.
Which instructions or trigger should you use? To answer, select the appropriate options in the answer area
NOTE: Each correct selection is worth one point

Which instructions or trigger should you use? To answer, select the appropriate options in the answer area
NOTE: Each correct selection is worth one point

Show answerHide answer
Explanation

Explanation:
The goal is to automatically populate the Incident Date and Status fields when a new "Room Incident" record is created.
Instructions:
"Incident Date":=Workdate(); is the correct function to assign the current work date (which is often the session date) to a date field. Today() could also be acceptable, but WorkDate() is more aligned with business application context in Business Central. CurrentDateTime() is incorrect as it returns a DateTime value, which is not suitable for a pure Date field.
"Status":=Status:Open; is the correct way to assign an enum value. Using the enum's symbolic name (Status:Open) is the modern, readable, and recommended practice in AL. Using the underlying integer value ("Status":=1;) is fragile and should be avoided, as the integer mapping can change if the enum is modified.
Trigger:
The OnInsert trigger is the correct choice. This trigger fires automatically when a new record is first saved to the database. It is the standard and intended place for initializing default field values for a new record.
OnModify fires when an existing record is changed, which is too late.
OnRename fires when a record's primary key is changed, which is irrelevant for setting initial values.



