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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to get the payment journal voucher against the Invoices selected to settle using X++

(0) ShareShare
ReportReport
Posted on by 221

Hello,

Hope you are doing great!

Could you please help me with providing the table relations or code snippet where I can find the Payment journal voucher against the marked invoice to settle?

In my case I have invoice ID, DocumentDate and InvoiceAmount and I want to know the payment journal voucher against this invoice.

The relation VendinvoiceJour.LedgerVoucher==VendTrans.lastSettledVoucher not providing the proper payment  journal voucher. And it would be empty if the Payment journal is not posted. 

Any suggestions would be very helpful. Thanks in advance!

Sandeep.

I have the same question (0)
  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,853 Super User 2026 Season 1 on at

    Hi MSandy,

    If you mean marked transaction on payment journal, you can use "SpecTrans" table.

    pastedimage1638380216060v2.png

    pastedimage1638380189149v1.png

    You can also use standard entities for payment journal line settled invoice.

    pastedimage1638380325524v3.png

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 620

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 521 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 430

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans