You need to sign in to do that
Don't have an account?
suji srinivasan
how to count the number of custom field in apex class?
I have LOP__c field in Leaverequest__c object .
I need to count this field in records.
Thanks in advance
I need to count this field in records.
Thanks in advance
Hi Suji,
If I am not wrong you want count of records where LOP__c is not blank. Please run below query that will give you required result. Please hit a like if this answers your question.
All Answers
Can you ellobrate it. What do you meant by you want to count? Do you want to count no of records which has some value in that field?
Thanks,
Hi Suji,
If I am not wrong you want count of records where LOP__c is not blank. Please run below query that will give you required result. Please hit a like if this answers your question.
Just simple
quickest way was to copy all fields from the field page to an excel doc an count the lines :So works accurately
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
I need to get LOP__C field from custom object Leave_Request__c for previous month (to calculate salary).
Then i need to count LOP__C field in salary__c object. in batch apex.
Thanks in advance