Post project invoice proposal using code

Hi experts,

I have made an import function in AX 3.0, that can make a project invoice proposal.

Now I need to post the proposal.

When I look at pages like this

https://dynamicsuser.net/ax/f/developers/56685/create-invoice-proposal-and-post-based-on-project-contract-using-x

I should use this code:

projFormLetter = ProjFormLetter::construct(DocumentStatus::ProjectInvoice);

projFormLetter.createParmLine(projProposalJour);

projFormLetter.run();

But the construct method is private, so I cannot use that.

How do I program that posting?

Look at which public methods call construct().