function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Can you not just interrogate the Converted boolean attribute or is there a more specific question ?
I want count of Converted leads.
OK, so you want a count of all the leads that are converted when the trigger is called or all the converted leads ever ?
This will give you a count of all of them in the trigger batch:
Integer convCount = 0; for (Lead l : trigger.new) { if (l.isConverted) convCount++; }
This wil give you a count of all converted leads in the database:
Integer convCount = [SELECT count()FROM Lead WHERE isConverted = true];
Can you not just interrogate the Converted boolean attribute or is there a more specific question ?
I want count of Converted leads.
OK, so you want a count of all the leads that are converted when the trigger is called or all the converted leads ever ?
This will give you a count of all of them in the trigger batch:
This wil give you a count of all converted leads in the database: