SFDO-Community / Summit-Events-App

Salesforce Event System developed at the University of St. Thomas
BSD 3-Clause "New" or "Revised" License
58 stars 56 forks source link

[BUG] Transaction email invocations limit reached on mass update of registrations #542

Closed tcdahlberg closed 8 months ago

tcdahlberg commented 9 months ago

Describe the bug Transactional emails are being sent in a for loop in the registration trigger code resulting in a "Too many API email invocations" error. Currently only 10 emails are allowed to be sent during one transactional event. The error and solution are defined here:

https://help.salesforce.com/s/articleView?id=000385111&type=1

To Reproduce Steps to reproduce the behavior:

  1. Set up transactional emails to a status
  2. Mass change 11 registrations status to match the transactional email status

Solution "Bulkify" the email message into a list and send with one sendmail as described in the link above.

tcdahlberg commented 8 months ago

Included in beta release 0.32.0.1

tcdahlberg commented 8 months ago

Included in production release 0.32.0.1