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
Rohit Kumar 648Rohit Kumar 648 

How to find field used percentage in apex?

Suraj Tripathi 47Suraj Tripathi 47

Hi,

can you please elaborate?

Adam Zuckerman 3Adam Zuckerman 3
There are different types of Apex limits such as SOQL, DML, and CPU time to name a few. Without knowing more I suggest you take a look at the Limits Class (https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_limits.htm) which has a variety of methods that return different types of limit information.
PriyaPriya (Salesforce Developers) 

Hi Rohit,

Please elaborate your requirement.

Regards,

Priya Ranjan

Rohit Kumar 648Rohit Kumar 648
I have an object like 'Account'  I want to find out its related field usages and percentage of that field usages.