Current.isNew() is a valid function which returns true if the record being created is a new record.

Prepare for the ServiceNow Certified Application Developer Exam. Study with multiple choice questions, hints, and explanations. Get ready for your exam!

Multiple Choice

Current.isNew() is a valid function which returns true if the record being created is a new record.

Explanation:
Understanding how to detect a new record in GlideRecord is essential. To check if the record currently being processed is new, you should use isNewRecord() on the GlideRecord (for example, current.isNewRecord()). This method returns true only for records that haven’t been saved to the database yet. The expression current.isNew() does not exist, so it won’t correctly indicate a new record. Therefore, the statement is not correct. In server-side scripting, the reliable way to detect a new record is current.isNewRecord(); client-side contexts use different approaches.

Understanding how to detect a new record in GlideRecord is essential. To check if the record currently being processed is new, you should use isNewRecord() on the GlideRecord (for example, current.isNewRecord()). This method returns true only for records that haven’t been saved to the database yet. The expression current.isNew() does not exist, so it won’t correctly indicate a new record. Therefore, the statement is not correct. In server-side scripting, the reliable way to detect a new record is current.isNewRecord(); client-side contexts use different approaches.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy