You need to sign in to do that
Don't have an account?
Sumantra Chowdhury 17
Bad Id for mass task delete
Hi!
I have a requirement to mass delete tasks for a user. However i am only presented with a single id at the mapping field. What do i need to do to make all the mapping fields available?
I have a requirement to mass delete tasks for a user. However i am only presented with a single id at the mapping field. What do i need to do to make all the mapping fields available?
One way to do this in Apex is to delete the Tasks using a query.
Here is an example:
Note that DML statements are limited to 10000 records. If your query exceeds 10000 records it will throw a DMLException, hence the "limit" statement in the query.
Hope that helps,
Clint