You can use the following methods to get all the active/inactive records from a table in ServiceNow: