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 2 months ago

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

1 Answers
Editor Staff answered 2 months 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.