Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Relation between Load, CustPackingSlipJour & CustPackingSlipTrans

Posted on by 572
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. 
 
 
  • Verified answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 9,531 Super User 2024 Season 2 on at
    Relation between Load, CustPackingSlipJour & CustPackingSlipTrans
    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans