web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Get sales invoice data after posting invoice

(0) ShareShare
ReportReport
Posted on by 65

Hi, for some reason I'm unable to post text on community it say an error occurred while saving the post.  So I'm adding a screenshot of my complete scenario. Do have a look and help me on this.

6574.pic1.png

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Wmyk Profile Picture
    152 on at

    Try taking a look at .parmAllJournals() on the outputContract variable.

    Here's a little method you can add to SalesFormLetter, then pass it the "outputContract" variable and inspect with the debugger.

    This code is incomplete and doesn't do any error checking, etc.

    private void processOuputContract(FormletterOutputContract _formLetterOutputContract)
    {
        Set                 allJournals = Set::create(SysOperationHelper::base64Decode(_formLetterOutputContract.parmAllJournals()));
        SetEnumerator       se = allJournals.getEnumerator();
        CustInvoiceJour     custInvoiceJour;
            
        // Add error checking and whatever logic all throughout this method
        while (se.moveNext())
        {
            custInvoiceJour = se.current();
        }    
    }


Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans