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
bheemudu neelibheemudu neeli 

Batch Class to update a custom field on User object

It is very urgent,
I have to Update a custom field on User object,requiremnt is when one user contains 10 account records, then this 10 should be display on user custom field. so how to achive this ?
for example: account, acount contain 100 records on same account owner. then this 100 sholud be display on that User custom field for reporting purpose. 


Thanks In Advance
CyberJusCyberJus
Do you mean the accounts they are the owner of? Is the requirement to have the count of the accounts or the names of the accounts? So, is the field = "100" or "Account1,Account2, Acccount3...."

The second option is not going to be of much use in reporting and you should re-evaulate your reporting goal. 
bheemudu neelibheemudu neeli
yes I mean the accounts they are the ownerof. the requiremnet is only count of accouts not a name.
for example: account, contain 100 records on same account owner. then this count of 100 sholud be display on that Users custom field.