I've complained before about Microsoft making so much of the E-Document Core and other functionality internal only, but I've run into a specific problem that I don't know how to get around.
I need to produce outgoing E-Documents from a Purchase Invoice. This does not seem to be supported, or possible to support via an extension as per my notes below:
The E-Document Core uses the "E-Document Subscription" codeunit to subscribe to the After Post events, but for PO/PI, seems only interested in linking to incoming documents.
If I want to create my own subscription:
- I cannot call "E-Document Subscription".CreateEDocumentFromPosedDocument because it's internal
- I cannot call "E-Doc. Export".CreateEDocument because it's internal
But if I try to re-implement "E-Doc. Export".CreateEDocument
- I cannot call "E-Doc. Export".PopulateEDocument because it's local
- I cannot use any of the E-Document Processing code unit because it has Access = internal
- I cannot initiate the background job in "E-Document Background Jobs"
So I would have to build a whole codeunit to replicate all of these methods to achieve what I want? Providing all of the tables will let me?
Is there any other solution?
Thanks.