I am newbie in D365 development, but has experience in Ax2012 development, My problem is the "new way of thinking" in D365.
I have an extension on projFormLetter_invoice and I need to do something with ProjInvoiceJour, when the invoice is posted.
I am posting two og more proposals at the same time so I need all the projInvoiceJour records.
I have created a COC on run() like this, but my code (this.doSomething(invoiceJour)) does only run on projInvoiceJour for the last projProposalJour that I have selected to post. Because of the code projProposalJour = this.parmProjProposalJour().
How can i get all projProposalJour records or all projInvoiceJour records?
public void run() { ProjProposalJour projProposalJour; ProjInvoiceJour invoiceJour; ; next run(); projProposalJour = this.parmProjProposalJour(); while select invoiceJour where invoiceJour.ProposalId == projProposalJour.ProposalId { if(MyParameters::find().AutoSettlementOnCreditNote == NoYes::Yes && invoiceJour.isCreditNote_CZ() == true) { this.doSomething(invoiceJour); } } }