microsoft / microsoft/BCApps

[Bug]: Email Outbox Refreshes and Removes Filters After Viewing an Email

Open
#8,658 4 comments 0 reactions 1 assignee View on GitHub

@gggdttt is already working on this.

Since Jun 22, 2026.

Approved Team: Integrations
Dominant language
AL
Stars
683
Forks
459
Avg merge
3d 26m
Merged PRs (30d)
633

Description

Describe the issue

The email outbox behaves counter intuitively because of how it refreshes the temp records. This results in any email being viewed removing the filters and thus forcing users to restart their process when troubleshooting.

This happens because the drilldown always causes a refresh as it assumes changes were made. This is also explained in the comment here.

The simple solution:
In OnAfterGetRecord, store the rec's view, call LoadEmail, re-apply the filter and current rec selection

The harder solution:
Figure out if email editor can communicate back if changes were made, but this would result in signature changes.

I am willing to provide a bug fix, but don't want to interfere with whatever plans MS might have (if any)

Expected behavior

don't remove filter.

Steps to reproduce
  1. go to the outbox.
  2. set a filter.
  3. click on an email to view it.
  4. close the email.
  5. filter is removed.
Additional context

No response

I will provide a fix for a bug
  • I will provide a fix for a bug

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.