Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Relations between custPackingSliptrans and sales line or between custPackingSliptrans and custinvoicetrans

(0) ShareShare
ReportReport
Posted on by 80

Hi experts,

I'm new to D365.

I need your help.

Can you please suggest me how to make a relationship between custPackingSliptrans and sales line or between custPackingSliptrans and custinvoicetrans.

I wanted to get the packing slips for the sales lines.

Thank you.

  • Suggested answer
    Katy3992 Profile Picture
    322 on at
    RE: Relations between custPackingSliptrans and sales line or between custPackingSliptrans and custinvoicetrans

    Hi,

    I have no idea if it helps you or not but here's my sql query to connect salesline + custpackingsliptrans, inventmodelgroupitem I used to exclude service items.

    select distinct SALESLINE.ITEMID,

    SALESLINE.SALESID,

    isnull(PACKINGSLIPID, '<none>'),

    isnull(CUSTPACKINGSLIPTRANS.DLVTERM, '<none>')

    from SALESLINE left outer join

    CUSTPACKINGSLIPTRANS on SALESLINE.INVENTTRANSID = CUSTPACKINGSLIPTRANS.INVENTTRANSID left outer join

    INVENTMODELGROUPITEM on SALESLINE.ITEMID = INVENTMODELGROUPITEM.ITEMID and salesline.DATAAREAID = INVENTMODELGROUPITEM.ITEMDATAAREAID

    Like that there shouldn't be any duplicates... let me know what you think about it.

    Best regards

    Katy :-)

  • Vidhushan S Profile Picture
    80 on at
    RE: Relations between custPackingSliptrans and sales line or between custPackingSliptrans and custinvoicetrans

    Hi Katy,

    Thank you for your reply.

    In my report I need to show sales order- sales line details - packing slip id - invoice details.

  • Katy3992 Profile Picture
    322 on at
    RE: Relations between custPackingSliptrans and sales line or between custPackingSliptrans and custinvoicetrans

    Hi,

    what do you need to report? Cause if you have an n:n connection you will have duplicates of course but these are related to your process so I am wondering - what exactly is the problem?

    Regards Katy

  • Vidhushan S Profile Picture
    80 on at
    RE: Relations between custPackingSliptrans and sales line or between custPackingSliptrans and custinvoicetrans

    Hi sahin.

    Thank you for your reply.

    We can use inventtransid,

    But the problem is when we have multiple packing slips for a single salesline. Or multiple packing slips for multiple sales line. 

  • ergun sahin Profile Picture
    8,816 Moderator on at
    RE: Relations between custPackingSliptrans and sales line or between custPackingSliptrans and custinvoicetrans

    You can find it via InventTransId

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

#1
Martin Dráb Profile Picture

Martin Dráb 601 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 416

#3
Adis Profile Picture

Adis 384 Super User 2025 Season 1

Product updates

Dynamics 365 release plans