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

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

join ARDoc to ARTran

(0) ShareShare
ReportReport
Posted on by 20
For various reasons, I need to get direct access to the Dynamics tables in SQL Server. According to the database definitions, the primary key to ARDoc is (CustId, DocType, RefNbr, BatNbr, BatSeq). But if I want to join to ARTran, the DocType and BatSeq values are not on the ARTran table. I know these tables are related. What is the correct way to join them?

*This post is locked for comments

I have the same question (0)
  • Chris Schack Profile Picture
    on at
    Re: join ARDoc to ARTran

    Hi Chris,

     Try this:

    ardoc.custid = artran.custid

    ardoc.refnbr = artran.refnbr

    ardoc.doctype = artran.trantype

     

    That should do it.

    Thanks,
    Chris Schack

    Queue Associates, Inc.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans