function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Formula to find if an inactive user owns any records

Is there a formula in to find if an Inactive user owns any records ?or is there a way to find the number of records owned by inactive users?

Please advise!!

Bhanu MaheshBhanu Mahesh
Hi SFDC Tech,
You create a formula field of type Checkbox on the object and formula will be 'Owner.IsActive'. It returns true if Owner is Active otherwise false.
Then create a report on the object with this checkbox = false as filter.
This report will give you the number of records which are owned by inactive users.

Run a query in developer console which will give you the count of records which are owned by inactive users.

For Ex:
Select count() FROM Contact WHERE Owner.isActive = false

Bhanu Mahesh