Skip to content

Comments

Move try statement to before single email message creation.#179

Merged
DKeatonDC merged 3 commits intomainfrom
feature/fix-batch-email
Jan 18, 2026
Merged

Move try statement to before single email message creation.#179
DKeatonDC merged 3 commits intomainfrom
feature/fix-batch-email

Conversation

@acrosman
Copy link
Contributor

Critical Changes

Moves try/catch in batch finish to include trying to create the SingleEmailMessage object.

Issues Closed

Fixes #178

@salesforce-cla
Copy link

Thanks for the contribution! Before we can merge this, we need @acrosman-ava to sign the Salesforce Inc. Contributor License Agreement.

@acrosman
Copy link
Contributor Author

This got tested at the sprint a bit and appears to be an effective (and safe) adjustment.

@acrosman acrosman marked this pull request as ready for review November 14, 2025 20:41
@acrosman acrosman requested a review from salgsstyrke November 14, 2025 20:41
@DKeatonDC DKeatonDC self-assigned this Jan 9, 2026
@DKeatonDC DKeatonDC self-requested a review January 9, 2026 13:38
Copy link
Contributor

@DKeatonDC DKeatonDC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and this works successfully.

@DKeatonDC DKeatonDC merged commit 4f04fbd into main Jan 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Batches fail with error message when email disabled

4 participants