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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

latest invoive per customer

(0) ShareShare
ReportReport
Posted on by

Hi all, how can i get the latest invoice per customer in soshipheader??

thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    If you want the most recent invoice number for each customer the following should work:

    select custid,max(invcnbr) from soshipheader group by custid

    If you want the most recent invoice date it can be a bit tricky because you could have more than one invoice on the same date so the following could return more than one invoice per customer

    select custid,max(invcdate) from soshipheader group by custid

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans