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
anil87anil87 

How to get open events to include in my count

HI Everyone ,

 

I want to caliculate  the open activities on lead object i included  yhe yasks which are isclosed = false which gives open tasks

like wise how i get open events to inclede in my count...

bob_buzzardbob_buzzard

You don't have the concept of open/closed events - they are just events in the past or future. So you'll need to query the events where the end date/time is greater than System.now().

 

* Edited as I originally gave details for closed events! *

Vinit_KumarVinit_Kumar

Anil,

 

I replied in the below post as how you can do it.Please don't repost the question :-

 

http://boards.developerforce.com/t5/Apex-Code-Development/Trigger-to-count-open-activities-on-opportunity/td-p/566661