You need to sign in to do that
Don't have an account?
Niraj Kumar 9
How to get all task related to Account, Contact, Opportunity using Soql
Hi Guys,
I need a soql query to get all task related to Account, Contact, opportunity.
Thanks.
I need a soql query to get all task related to Account, Contact, opportunity.
Thanks.
If any account or opportunity has any task, then the account or opportunity will be saved in whatid field of task object and if any contact has task, then the contact id will be saved in whoid field.
By providing account, contact or opportunity id in the above query, tasks related to these objects can be retrieved
Here is the my trigger and apex class. I want to add Functionality only for Account Count so that its show total no of count associated with either Account,related Contact,related opportunity associated with this account.