You need to sign in to do that
Don't have an account?

help with apex and soql
Hi all - I need help with apex and soql
Account object has a custom date field called "Last followup"
I would like to update this field on insert/edit/update/delete of CONTACT. I have a contact trigger and "Last followup" needs to be updated in this trigger
"Last followup" field on account object should be updated with MAX of ActivityDate field FROM ActivityHistories object.of all contacts tied to that account.. As per my understanding, ActivityHistories records can only be queried as a subquery.
Thanks for help
Account object has a custom date field called "Last followup"
I would like to update this field on insert/edit/update/delete of CONTACT. I have a contact trigger and "Last followup" needs to be updated in this trigger
"Last followup" field on account object should be updated with MAX of ActivityDate field FROM ActivityHistories object.of all contacts tied to that account.. As per my understanding, ActivityHistories records can only be queried as a subquery.
Thanks for help
If it helps, please mark this as solved.
All Answers
If it helps, please mark this as solved.