March 2017
Beginner
358 pages
9h 51m
English
These two methods are for the deletion of one or more records from the database.
It should be made clear that deletion of records in ServiceNow is, and should be, generally a rare occurrence. Whenever possible, it is best to deactivate or otherwise mark a record as no longer in use, for historical and tracking purposes.
Neither deleteRecord() nor deleteMultiple() take any arguments, as both are called as methods of a specific GlideRecord object upon which they act. However, the similarities end there, as the behavior and usage of both of these methods are quite different.
deleteRecord() is used to delete a single record (in a GlideRecord) from the database. deleteMultiple() on the other hand, is used to ...
Read now
Unlock full access