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 :
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.

I have the same question (0)
  • ergun sahin Profile Picture
    8,826 Moderator on at

    You can find it via InventTransId

  • Vidhushan S Profile Picture
    80 on at

    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. 

  • Katy3992 Profile Picture
    322 on at

    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

    Hi Katy,

    Thank you for your reply.

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

  • Suggested answer
    Katy3992 Profile Picture
    322 on at

    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 :-)

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

#1
Martin Dráb Profile Picture

Martin Dráb 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 464 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans