Skip to content

[Bug]: If at least one security filter is applied to the “Purchase Header” table, the user will have a problem when push ‘Add file from source document’ action on the “Email Attachments” subpage #8156

@FrankNeeckx

Description

@FrankNeeckx

Describe the issue

Hi,
If at least one security filter is applied to the “Purchase Header” table, the user will have a problem when push ‘Add file from source document’ action on the “Email Attachments” subpage. Message: "Did not find any attachments related to this email"

With this event, we will be able to add the following condition:
SourceRecordRef.SecurityFiltering(SecurityFilter::Ignored);
before reading permissions.

Thx in advance,
Frank Neeckx

Expected behavior

When reproducing, We expect to be able to select document attachments.

Steps to reproduce

  1. add a security filter to the puchase header table
  2. Add attachments to a blanked purchase order
  3. Push: send by mail on the blanked purchase order
  4. Push action : ‘Add file from source document’ action on the “Email Attachments” subpage.
  5. Result : Error : "Did not find any attachments related to this email"

Additional context

A new onbefore event to be added to the function : procedure FilterRemovedSourceRecords(var EmailRelatedRecord: Record "Email Related Record") in the [Codeunit][8900][Email Impl]

I will provide a fix for a bug

  • I will provide a fix for a bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    IntegrationGitHub request for Integration area

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions