How can you get all the active/inactive records from a table in ServiceNow?

DWQA QuestionsCategory: QuestionsHow can you get all the active/inactive records from a table in ServiceNow?
Editor Staff asked 1 month ago

How can you get all the active/inactive records from a table in ServiceNow?

1 Answers
Editor Staff answered 1 month ago

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

addActiveQuery() method: This method is used to get all the active records.
addInactiveQuery() method: This method is used to get all the inactive records.