Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Missing Permission for procedure "Attachments_DeleteContent" in codeunit "Email Message" #2581

Open
1 task done
Erden-GOB opened this issue Dec 19, 2024 · 0 comments

Comments

@Erden-GOB
Copy link

Describe the issue

The procedure "Attachments_DeleteContent" of the public system application codeunit 8904 "Email Message" runs into a permission Error

Image

This is caused by a modify on the internal table 8904 "Email Message Attachment".

Image
Image

The codeunit seems to be missing the indirect permissions to modify this table

Image

Expected behavior

The procedure of the facade codeunit 8904 "Email Message" can be used without a permission error.

Steps to reproduce

    procedure AttachmentDelete()
    var
        SentEmail: Record "Sent Email";
        EmailMessage: Codeunit "Email Message";
        AttachmentInStream: InStream;
    begin
        SentEmail.FindFirst();
        EmailMessage.Get(SentEmail.GetMessageId());
        EmailMessage.Attachments_First();
        EmailMessage.Attachments_GetContent(AttachmentInStream);
        EmailMessage.Attachments_DeleteContent(true);
    end;

Additional context

No response

I will provide a fix for a bug

  • I will provide a fix for a bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant