Skip to content

[Bug]: E-Document, cannot subscribe to OnBeforeCreateEDocumentFromPostedDocument #5309

@joandrsn

Description

@joandrsn

Describe the issue

In microsoft/ALAppExtensions#28877 my PR was accepted to create an IntegrationEvent in "E-Document Subscribers" to fix microsoft/ALAppExtensions#28340

However, since this codeunit has "Access = Internal", we cannot subscribe to the newly added event "OnBeforeCreateEDocumentFromPostedDocument".

Codeunit Microsoft.eServices.EDocument."E-Document Subscribers"' is inaccessible due to its protection level

Expected behavior

To be able to subscribe to the new event OnBeforeCreateEDocumentFromPostedDocument

Steps to reproduce

Try to subscribe to OnBeforeCreateEDocumentFromPostedDocument in a codeunit from an PTE.

Additional context

I am looking for feedback on how you want the implementation. Should I change the access of E-Document Subscribers and modify the access of the two other procedures? Or should I create a new codeunit which is accessible?

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