I have an approval process defined the scenarios I need to cover are:
Users after save a record (in a custom object), I have a apex class that sends the record to approve, (the process is going to the approval process.), the approver gets an email with the request to approve so he can approve or reject as normal the process is). This scenario works fine.
In some cases an specific user (admin) make a mass upload with around 100 record, the apex class handle to send all of them to approve and then those are by default approved by default.
The problem with the scenario 2 is, when the record is sent to approve by Apex, the default approver is getting a lot of emails with the (The request XXXX requires approval).
Is there a way to avoid to send the initial submission email when from apex I see the size of the records is greater than 1 record for example? If not, what would be a workaround for this situation?