+ Start a Discussion

Swarm triggers need to check isFuture and isBatch

The Swarm app (my client is on version 3.0) calls @future methods in its triggers. If a record is updated by an @future method or a batch process, it throws an error because you can't call an @future method from a batch transaction or a future one.


The triggers need to be updated to check system.isFuture() and system.isBatch() before invoking those calls.  Not doing this makes the swarm app not play nice with other AppExchange apps!


I do see version 3.1.0 on AppExchange now. If this was fixed in that version, I apologize for this post. I don't want to update muy customers system to check, though.