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

Batch update on activities
I need to write an apex class to do a batch update on activities. My question is do I need to query Tasks and Events seperately in my class like I would if were using the workbench or can I query all the activites together? If so how. I will be writing a batch class to update basically all of our open and closed actvities to update some new lookup fields we recently added.
Please find comments on your questions.
1) do I need to query Tasks and Events seperately?
- Yes you have to query Tasks and Events separately.
2) can I query all the activites together?
- There is no way to query Task and events together you have to query on both saperately.
Best Regards,
Amit