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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Relation between Load, CustPackingSlipJour & CustPackingSlipTrans

(1) ShareShare
ReportReport
Posted on by 642
Hi Experts,
 
I have a scenario that we will be sending multiple sales order deliveries to same customer in one load. I am preparing a SSRS report for the same. What is .the relation between WhsLoadTable / CustPackingSlipJour / CustPackingSlipTrans. 
I saw the table WhsLoadTableCustpackingSlipJour but when I tested some transaction, the relation WhsLoadTableCustPackingSlipjour.CustPackingSlipJourRecId  = CustPackingSlipJour,recid relation did not find matching as required. 
 
I need to fetch the packing slip transaction based on the parameter Load id from the table WHSLoadTable. 
 
Thanks in advance. 
 
 
I have the same question (0)
  • Verified answer
    Mohamed Amine Mahmoudi Profile Picture
    26,821 Super User 2026 Season 1 on at
    Hi @Alex,
     
    try this :
    select * from custPackingSlipTrans
    join CustPackingSlipJour
    on CustPackingSlipJour.SalesId = custPackingSlipTrans.SalesId
    and CustPackingSlipJour.PackingSlipId = custPackingSlipTrans.PackingSlipId
    join WHSLoadLine
    on WHSLoadLine.InventTransType = 0
    and WHSLoadLine.OrderNum       = CustPackingSlipJour.SalesId
    join WHSLoadTable on WHSLoadLine.LoadId = WHSLoadTable.LoadId
    Best regards,
    Mohamed Amine MAHMOUDI
  • EB-26061403-0 Profile Picture
    2 on at
    i am getting multiple records from these connections because of there being multiple shipments for the same sales order line/Inventtransid on different dates which results in something like the following:
     
    SalesId                LineNum                        InventTransId      PackingSlipId     ShipmentId    InvoiceId    SignDate        RouteCode   loadid
    10SO1965556    1.0000000000000000    10ILOT0000690    10RPS250190    10SH0000220                   2026-07-08    0    hay         10LD0000309
    10SO1965556    1.0000000000000000    10ILOT0000690    10RPS250206    10SH0000220                   2026-07-10    0    hay         10LD0000309
    10SO1965556    1.0000000000000000    10ILOT0000690    10RPS250190    10SH0000240                   2026-07-08    0    hay         10LD0000330
    10SO1965556    1.0000000000000000    10ILOT0000690    10RPS250206    10SH0000240                   2026-07-10    0    hay         10LD0000330
     
     
    We have been hacking away at this for days.  What are we missing???
  • Martin Dráb Profile Picture
    240,312 Most Valuable Professional on at
    The verified answer is indeed wrong. It gives you lines of all loads that are related to the "main" sales order of the packing slip. They may be unrelated to the given packing slip (or any packing slip at all), and the query ignores other sales orders included in the packing slip.
     
    It can be improved by taking specific sales lines (InventTransId) and CustPackingSlipSalesLink into account. But the key question is whether there is a logical relation between load lines and packing slip lines, which should be answered by someone familiar with the business process. There surely is a relation from a load line to an order line (and you can find all packing slips for that order line), but I'm not aware of a relation between load lines and specific packing slip lines.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288 Super User 2026 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 270 Most Valuable Professional

#3
Anton Venter Profile Picture

Anton Venter 217 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans