Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

How do I reference an AP Check to the Voucher in a Sql query?

(0) ShareShare
ReportReport
Posted on by 4

I can't believe that I can figure this out. 

I need a query of AP Vouchers and their related checks.  I am expecting to see a reference in either the APDoc or APTran table of the Check record that references the Voucher RefNbr.  ApplyRefNbr seemed like a likely candidate but it always seems to be the same as RefNbr.  Clearly some kind of reference exists because the check screen displays the voucher information and I can drill down to the voucher.

What am I missing?

*This post is locked for comments

  • Mark Schurmann Profile Picture
    4 on at
    RE: How do I reference an AP Check to the Voucher in a Sql query?

    That got it.  Thanks for the assist.

  • Verified answer
    Mark E Profile Picture
    6,451 on at
    RE: How do I reference an AP Check to the Voucher in a Sql query?

    You have to link in the APAdjust table.  The AdjgRefNbr field is the AP Check, the AdjdRefNbr is the Voucher(s) it paid.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

#1
Community Member Profile Picture

Community Member 136

#2
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 102 Super User 2025 Season 1

#3
REUser Profile Picture

REUser 8

Featured topics

Product updates

Dynamics 365 release plans